Changed the order of the BaseMonochromeBitmapSource constructor arguments to be width...
[zxing.git] / android / src / com / google / zxing / client / android / YUVMonochromeBitmapSource.java
index 913240f..8aad467 100755 (executable)
@@ -78,7 +78,7 @@ public final class YUVMonochromeBitmapSource extends BaseMonochromeBitmapSource
                                    int cropLeft,
                                    int cropBottom,
                                    int cropRight) {
-    super(cropBottom - cropTop, cropRight - cropLeft);
+    super(cropRight - cropLeft, cropBottom - cropTop);
     if (cropRight - cropLeft > dataWidth || cropBottom - cropTop > dataHeight) {
       throw new IllegalArgumentException();
     }