Continuing with the x, y coordinate push, BitMatrix is now standardized. I also conve...
[zxing.git] / core / src / com / google / zxing / datamatrix / DataMatrixReader.java
index 284efaa..a845f03 100644 (file)
@@ -138,7 +138,7 @@ public final class DataMatrixReader implements Reader {
       int iOffset = borderWidth + i * moduleSize;
       for (int j = 0; j < dimension; j++) {
         if (image.isBlack(borderWidth + j * moduleSize, iOffset)) {
-          bits.set(i, j);
+          bits.set(j, i);
         }
       }
     }