Fix PDF417 numeric encoding grouping index check

This commit is contained in:
Bo Xu 2015-01-15 12:01:49 -08:00
parent bb8f6f84a2
commit cfeb6758db

View file

@ -421,7 +421,7 @@ final class PDF417HighLevelEncoder {
StringBuilder tmp = new StringBuilder(count / 3 + 1);
BigInteger num900 = BigInteger.valueOf(900);
BigInteger num0 = BigInteger.valueOf(0);
while (idx < count - 1) {
while (idx < count) {
tmp.setLength(0);
int len = Math.min(44, count - idx);
String part = '1' + msg.substring(startpos + idx, startpos + idx + len);