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

View file

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