mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Issue #168 : don't emit symbols for empty numeric compaction in PDF417
This commit is contained in:
parent
f4b7264413
commit
cdcccab200
2
AUTHORS
2
AUTHORS
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue