Bug fix from K. Kakima

git-svn-id: https://zxing.googlecode.com/svn/trunk@120 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2007-12-18 16:37:05 +00:00
parent 87c2c1acaa
commit fd68032e1a

View file

@ -99,7 +99,7 @@ final class AlignmentPatternFinder {
// Burn off leading white pixels before anything else; if we start in the middle of
// a white run, it doesn't make sense to count its length, since we don't know if the
// white run continued to the left of the start point
while (!luminanceRow.get(j - startX) && j < maxJ) {
while (j < maxJ && !luminanceRow.get(j - startX)) {
j++;
}
while (j < maxJ) {