ISSUE: http://code.google.com/p/zxing/issues/detail?id=42
[zxing.git] / core / src / com / google / zxing / pdf417 / decoder / BitMatrixParser.java
index 2d29584..79e8313 100644 (file)
@@ -89,14 +89,14 @@ final class BitMatrixParser {
       for (int j = 0; j < width; j++) {\r
         // Accumulate differences between this line and the\r
         // previous line.\r
-        if (bitMatrix.get(i, j) != bitMatrix.get(i - 1, j)) {\r
+        if (bitMatrix.get(j, i) != bitMatrix.get(j, i - 1)) {\r
           rowDifference++;\r
         }\r
       }\r
       if (rowDifference <= moduleWidth * MAX_ROW_DIFFERENCE) {\r
         for (int j = 0; j < width; j++) {\r
           // Accumulate the black pixels on this line\r
-          if (bitMatrix.get(i, j)) {\r
+          if (bitMatrix.get(j, i)) {\r
             rowCounters[j]++;\r
           }\r
         }\r