"Skip 0 barcodes" was incorrectly not returning the first barcode found

git-svn-id: https://zxing.googlecode.com/svn/trunk@337 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-04-02 14:03:02 +00:00
parent 012a8c0ce7
commit 01075819c5

View file

@ -87,7 +87,10 @@ public abstract class AbstractOneDReader implements OneDReader {
}
Hashtable lastResults = null;
boolean skippingSomeBarcodes = hints != null && hints.containsKey(DecodeHintType.SKIP_N_BARCODES);
boolean skippingSomeBarcodes =
hints != null &&
hints.containsKey(DecodeHintType.SKIP_N_BARCODES) &&
((Integer) hints.get(DecodeHintType.SKIP_N_BARCODES)).intValue() > 0;
for (int x = 0; x < maxLines; x++) {