Issue 361
[zxing.git] / core / src / com / google / zxing / pdf417 / decoder / BitMatrixParser.java
index 7821483..29c0ba3 100644 (file)
@@ -60,7 +60,7 @@ final class BitMatrixParser {
    * @return an array of codewords.\r
    */\r
   int[] readCodewords() throws FormatException {\r
-    int width = bitMatrix.getDimension();\r
+    int width = bitMatrix.getWidth();\r
     // TODO should be a rectangular matrix\r
     int height = width;\r
 \r
@@ -186,7 +186,7 @@ final class BitMatrixParser {
    */\r
   int processRow(int[] rowCounters, int rowNumber, int rowHeight, int[] codewords, int next)\r
       throws FormatException {\r
-    int width = bitMatrix.getDimension();\r
+    int width = bitMatrix.getWidth();\r
     int columnNumber = 0;\r
     long symbol = 0;\r
     for (int i = 0; i < width; i += MODULES_IN_SYMBOL) {\r