Move character encoding logic out to common, try again to improve its handling of...
[zxing.git] / core / src / com / google / zxing / oned / ITFReader.java
index b380972..c187768 100644 (file)
@@ -46,7 +46,7 @@ public final class ITFReader extends OneDReader {
   private static final int W = 3; // Pixel width of a wide line\r
   private static final int N = 1; // Pixed width of a narrow line\r
 \r
-  private static final int[] DEFAULT_ALLOWED_LENGTHS = { 6, 10, 14, 44 };\r
+  private static final int[] DEFAULT_ALLOWED_LENGTHS = { 6, 10, 12, 14, 44 };\r
 \r
   // Stores the actual narrow line width of the image being decoded.\r
   private int narrowLineWidth = -1;\r
@@ -340,9 +340,9 @@ public final class ITFReader extends OneDReader {
     }\r
     if (bestMatch >= 0) {\r
       return bestMatch;\r
-               } else {\r
-                       throw NotFoundException.getNotFoundInstance();\r
-               }\r
-       }\r
+    } else {\r
+      throw NotFoundException.getNotFoundInstance();\r
+    }\r
+  }\r
 \r
 }\r