Merge pull request #290 from shifucun/master

Fix PDF417 numeric encoding grouping index check
This commit is contained in:
Sean Owen 2015-01-16 04:33:51 +00:00
commit 71d83953bd

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);