mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Issue #166 let byte compaction proceed in cases where it 'thought' text compaction would take over, but it had not
This commit is contained in:
parent
d70ef416ec
commit
787a4497ba
|
@ -554,18 +554,6 @@ final class PDF417HighLevelEncoder {
|
|||
if (numericCount >= 13) {
|
||||
return idx - startpos;
|
||||
}
|
||||
int textCount = 0;
|
||||
while (textCount < 5 && isText(ch)) {
|
||||
textCount++;
|
||||
int i = idx + textCount;
|
||||
if (i >= len) {
|
||||
break;
|
||||
}
|
||||
ch = msg.charAt(i);
|
||||
}
|
||||
if (textCount >= 5) {
|
||||
return idx - startpos;
|
||||
}
|
||||
ch = msg.charAt(idx);
|
||||
|
||||
//Check if character is encodable
|
||||
|
|
Loading…
Reference in a new issue