X-Git-Url: http://git.rot13.org/?p=zxing.git;a=blobdiff_plain;f=core%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fqrcode%2Fdetector%2FFinderPattern.java;h=18cfafd79adbffb6bf553f40fcd34965fb783cc3;hp=1d98fe92ec7e4cb1ca1e3bb6f32f128a5f0fa879;hb=324c4749d7fc3e6823d48921ef3e7ae81ca9cd0f;hpb=711c5501f7ffb74ecb1bd0d4a6d78196ba872c4c diff --git a/core/src/com/google/zxing/qrcode/detector/FinderPattern.java b/core/src/com/google/zxing/qrcode/detector/FinderPattern.java index 1d98fe92..18cfafd7 100644 --- a/core/src/com/google/zxing/qrcode/detector/FinderPattern.java +++ b/core/src/com/google/zxing/qrcode/detector/FinderPattern.java @@ -65,8 +65,8 @@ public final class FinderPattern implements ResultPoint { */ boolean aboutEquals(float moduleSize, float i, float j) { return Math.abs(i - posY) <= moduleSize && - Math.abs(j - posX) <= moduleSize && - (Math.abs(moduleSize - estimatedModuleSize) <= 1.0f || + Math.abs(j - posX) <= moduleSize && + (Math.abs(moduleSize - estimatedModuleSize) <= 1.0f || Math.abs(moduleSize - estimatedModuleSize) / estimatedModuleSize <= 0.1f); }