mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
9af91c0cf1
commit
acad53f39b
|
@ -207,6 +207,8 @@ public abstract class AbstractUPCEANReader extends AbstractOneDReader implements
|
||||||
for (int y = 2; y < patternLength; y++) {
|
for (int y = 2; y < patternLength; y++) {
|
||||||
counters[y - 2] = counters[y];
|
counters[y - 2] = counters[y];
|
||||||
}
|
}
|
||||||
|
counters[patternLength - 2] = 0;
|
||||||
|
counters[patternLength - 1] = 0;
|
||||||
counterPosition--;
|
counterPosition--;
|
||||||
} else {
|
} else {
|
||||||
counterPosition++;
|
counterPosition++;
|
||||||
|
|
|
@ -196,6 +196,8 @@ public final class Code128Reader extends AbstractOneDReader {
|
||||||
for (int y = 2; y < patternLength; y++) {
|
for (int y = 2; y < patternLength; y++) {
|
||||||
counters[y - 2] = counters[y];
|
counters[y - 2] = counters[y];
|
||||||
}
|
}
|
||||||
|
counters[patternLength - 2] = 0;
|
||||||
|
counters[patternLength - 1] = 0;
|
||||||
counterPosition--;
|
counterPosition--;
|
||||||
} else {
|
} else {
|
||||||
counterPosition++;
|
counterPosition++;
|
||||||
|
|
Loading…
Reference in a new issue