And fixed the "270" issue: logic error in computing the "skip" allowed after finding...
[zxing.git] / core / src / com / google / zxing / qrcode / detector / FinderPatternFinder.java
index 160fd75..543467d 100755 (executable)
@@ -411,7 +411,7 @@ final class FinderPatternFinder {
           // difference in the x / y coordinates of the two centers.\r
           // This is the case where you find top left first. Draw it out.\r
           hasSkipped = true;\r
-          return (int) Math.abs(Math.abs(firstConfirmedCenter.getX() - center.getX()) -\r
+          return (int) (Math.abs(firstConfirmedCenter.getX() - center.getX()) -\r
               Math.abs(firstConfirmedCenter.getY() - center.getY()));\r
         }\r
       }\r