From: srowen Date: Sun, 3 May 2009 19:52:03 +0000 (+0000) Subject: Forge ahead with detection even if we missed an alignment pattern -- can still decode... X-Git-Url: http://git.rot13.org/?p=zxing.git;a=commitdiff_plain;h=14b6a96cef5b32fc1a929cb377bb50adaf63951d 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 --- 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);