Oops fixed typo in last patch
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Fri, 13 Nov 2009 09:57:14 +0000 (09:57 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Fri, 13 Nov 2009 09:57:14 +0000 (09:57 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@1108 59b500cc-1b3d-0410-9834-0bbf25fbcc57

core/src/com/google/zxing/multi/GenericMultipleBarcodeReader.java

index 25079e1..b25a688 100644 (file)
@@ -129,12 +129,12 @@ public final class GenericMultipleBarcodeReader implements MultipleBarcodeReader
     }
     // Decode right of barcode
     if (maxX < width - MIN_DIMENSION_TO_RECUR) {
-      doDecodeMultiple(image.crop((int) maxX, 0, MIN_DIMENSION_TO_RECUR - (int) maxX, height),
+      doDecodeMultiple(image.crop((int) maxX, 0, width - (int) maxX, height),
                        hints, results, (int) maxX, 0);
     }
     // Decode below barcode
     if (maxY < height - MIN_DIMENSION_TO_RECUR) {
-      doDecodeMultiple(image.crop(0, (int) maxY, width, MIN_DIMENSION_TO_RECUR - (int) maxY),
+      doDecodeMultiple(image.crop(0, (int) maxY, width, height - (int) maxY),
                        hints, results, 0, (int) maxY);
     }
   }