mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Small logic fix -- OK to end up at border of image in this code
git-svn-id: https://zxing.googlecode.com/svn/trunk@127 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
f1639974f0
commit
3fd38e3893
|
@ -226,7 +226,7 @@ final class FinderPatternFinder {
|
|||
stateCount[0]++;
|
||||
i--;
|
||||
}
|
||||
if (i < 0 || stateCount[0] > maxCount) {
|
||||
if (stateCount[0] > maxCount) {
|
||||
return Float.NaN;
|
||||
}
|
||||
|
||||
|
@ -287,7 +287,7 @@ final class FinderPatternFinder {
|
|||
stateCount[0]++;
|
||||
j--;
|
||||
}
|
||||
if (j < 0 || stateCount[0] > maxCount) {
|
||||
if (stateCount[0] > maxCount) {
|
||||
return Float.NaN;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue