From 14b6a96cef5b32fc1a929cb377bb50adaf63951d Mon Sep 17 00:00:00 2001 From: srowen Date: Sun, 3 May 2009 19:52:03 +0000 Subject: [PATCH] Forge ahead with detection even if we missed an alignment pattern -- can still decode in some cases without it git-svn-id: http://zxing.googlecode.com/svn/trunk@929 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- core/src/com/google/zxing/qrcode/detector/Detector.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/com/google/zxing/qrcode/detector/Detector.java b/core/src/com/google/zxing/qrcode/detector/Detector.java index 9666b9da..a933f069 100644 --- a/core/src/com/google/zxing/qrcode/detector/Detector.java +++ b/core/src/com/google/zxing/qrcode/detector/Detector.java @@ -106,10 +106,7 @@ public final class Detector { // try next round } } - if (alignmentPattern == null) { - throw ReaderException.getInstance(); - } - + // If we didn't find alignment pattern... well try anyway without it } BitMatrix bits = sampleGrid(image, topLeft, topRight, bottomLeft, alignmentPattern, dimension); -- 2.20.1