Oops, not clearing row counters when we shift down by two buckets. Fixed.

git-svn-id: https://zxing.googlecode.com/svn/trunk@225 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-02-22 19:18:29 +00:00
parent 9af91c0cf1
commit acad53f39b
2 changed files with 4 additions and 0 deletions

View file

@ -207,6 +207,8 @@ public abstract class AbstractUPCEANReader extends AbstractOneDReader implements
for (int y = 2; y < patternLength; y++) {
counters[y - 2] = counters[y];
}
counters[patternLength - 2] = 0;
counters[patternLength - 1] = 0;
counterPosition--;
} else {
counterPosition++;

View file

@ -196,6 +196,8 @@ public final class Code128Reader extends AbstractOneDReader {
for (int y = 2; y < patternLength; y++) {
counters[y - 2] = counters[y];
}
counters[patternLength - 2] = 0;
counters[patternLength - 1] = 0;
counterPosition--;
} else {
counterPosition++;