mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
C++: ITFReader.cpp was throwing wrong exception
ITFReader.cpp:75 was catching and re-throwing Exception instead of ReaderException, causing scanning to terminate prematurely in some cases (i.e. core/test/data/blackbox/ean13-1/23.JPG). The calling function, MultiFormatOneDReader::doDecode, is only catching ReaderException's. An Exception would be passed all the way up to the caller, even if scanning hasn't finished yet for other decoders for other rows. git-svn-id: https://zxing.googlecode.com/svn/trunk@1493 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
63a5cd3055
commit
d2499c38bb
|
@ -72,7 +72,7 @@ namespace zxing {
|
||||||
int* endRange;
|
int* endRange;
|
||||||
try {
|
try {
|
||||||
endRange = decodeEnd(row);
|
endRange = decodeEnd(row);
|
||||||
} catch (Exception e) {
|
} catch (ReaderException e) {
|
||||||
delete [] startRange;
|
delete [] startRange;
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue