C# port, QRCode finder pattern update based on r814 update
[zxing.git] / csharp / qrcode / detector / FinderPatternFinder.cs
index f9e3834..6023ef0 100755 (executable)
@@ -408,10 +408,10 @@ namespace com.google.zxing.qrcode.detector
                   // How far down can we skip before resuming looking for the next\r
                   // pattern? In the worst case, only the difference between the\r
                   // 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
+                    // This is the case where you find top left last.\r
                   hasSkipped = true;\r
                   return (int) (Math.Abs(firstConfirmedCenter.getX() - center.getX()) -\r
-                      Math.Abs(firstConfirmedCenter.getY() - center.getY()));\r
+                      Math.Abs(firstConfirmedCenter.getY() - center.getY())) / 2;\r
                 }\r
               }\r
             }\r