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:
Sean Owen 2014-06-10 17:58:59 -04:00
parent d70ef416ec
commit 787a4497ba

View file

@ -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