Fixed some code which was ignoring the result of MonochromeBitmapSource calls, which...
[zxing.git] / core / src / com / google / zxing / qrcode / detector / AlignmentPatternFinder.java
index 25e312b..01066e3 100644 (file)
@@ -92,7 +92,7 @@ final class AlignmentPatternFinder {
     for (int iGen = 0; iGen < height; iGen++) {\r
       // Search from middle outwards\r
       int i = middleI + ((iGen & 0x01) == 0 ? ((iGen + 1) >> 1) : -((iGen + 1) >> 1));\r
-      image.getBlackRow(i, luminanceRow, startX, width);\r
+      luminanceRow = image.getBlackRow(i, luminanceRow, startX, width);\r
       stateCount[0] = 0;\r
       stateCount[1] = 0;\r
       stateCount[2] = 0;\r