Issue #168 : don't emit symbols for empty numeric compaction in PDF417

This commit is contained in:
Sean Owen 2014-06-05 21:30:48 +01:00
parent f4b7264413
commit cdcccab200
2 changed files with 7 additions and 3 deletions

View file

@ -76,6 +76,7 @@ Marcelo
Mateusz Jędrasik
Matthew Schulkind (Google)
Matt York (LifeMarks)
micjahn
mike32767
mikej06
Mike Kicinski
@ -118,5 +119,6 @@ Tim Gernat
v.anestis
Vince Francis (LifeMarks)
Wolfgang Jung
Yahoe001
Yakov Okshtein (Google)
Yao Wei

View file

@ -545,9 +545,11 @@ final class DecodedBitStreamParser {
// while in Numeric Compaction mode) serves to terminate the
// current Numeric Compaction mode grouping as described in 5.4.4.2,
// and then to start a new one grouping.
String s = decodeBase900toBase10(numericCodewords, count);
result.append(s);
count = 0;
if (count > 0) {
String s = decodeBase900toBase10(numericCodewords, count);
result.append(s);
count = 0;
}
}
}
return codeIndex;