Added a bit of defensive programming in the AlignmentPattern code. There were real...
authordswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Tue, 14 Oct 2008 18:24:23 +0000 (18:24 +0000)
committerdswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Tue, 14 Oct 2008 18:24:23 +0000 (18:24 +0000)
commit23fc6b558bad94d06213bfdb360ff08d08de543b
treee91a2b51fc9af55c955c1c46da45a2a68c172623
parent748f492e437a80d6b710f92e83eddbf7c44e2d58
Added a bit of defensive programming in the AlignmentPattern code. There were real world examples where the width passed to AlignmentPatternFinder was zero, which causes BitArray to throw when built with a size of zero. I'm going a little bit farther and not searching extremely small areas either.

Sean, please review.

git-svn-id: http://zxing.googlecode.com/svn/trunk@617 59b500cc-1b3d-0410-9834-0bbf25fbcc57
core/src/com/google/zxing/qrcode/detector/Detector.java