Changed OneDReader::recordPattern to not throw exceptions. For now it just
[zxing.git] / cpp / core / src / zxing / oned / Code39Reader.cpp
index bcf1b68..9a2a82a 100644 (file)
@@ -102,7 +102,9 @@ namespace oned {
       char decodedChar;
       int lastStart;
       do {
-        recordPattern(row, nextStart, counters, countersLen);
+        if (!recordPattern(row, nextStart, counters, countersLen)) {
+          throw ReaderException("");
+        }
         int pattern = toNarrowWidePattern(counters, countersLen);
         if (pattern < 0) {
           throw ReaderException("pattern < 0");