mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Issue 512
git-svn-id: https://zxing.googlecode.com/svn/trunk@1517 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
d4765a6afd
commit
14712eff37
|
@ -53,9 +53,9 @@ public final class ITFWriter extends UPCEANWriter {
|
||||||
int one = Character.digit(contents.charAt(i), 10);
|
int one = Character.digit(contents.charAt(i), 10);
|
||||||
int two = Character.digit(contents.charAt(i+1), 10);
|
int two = Character.digit(contents.charAt(i+1), 10);
|
||||||
int[] encoding = new int[18];
|
int[] encoding = new int[18];
|
||||||
for (int j = 0; j < 10; j += 2) {
|
for (int j = 0; j < 5; j++) {
|
||||||
encoding[j] = ITFReader.PATTERNS[one][j];
|
encoding[(j << 1)] = ITFReader.PATTERNS[one][j];
|
||||||
encoding[j + 1] = ITFReader.PATTERNS[two][j];
|
encoding[(j << 1) + 1] = ITFReader.PATTERNS[two][j];
|
||||||
}
|
}
|
||||||
pos += appendPattern(result, pos, encoding, 1);
|
pos += appendPattern(result, pos, encoding, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue