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:
flyashi 2010-07-27 23:02:28 +00:00
parent 63a5cd3055
commit d2499c38bb

View file

@ -72,7 +72,7 @@ namespace zxing {
int* endRange;
try {
endRange = decodeEnd(row);
} catch (Exception e) {
} catch (ReaderException e) {
delete [] startRange;
throw e;
}