Skip to content

Commit

Permalink
Issue zxing#166 let byte compaction proceed in cases where it 'though…
Browse files Browse the repository at this point in the history
…t' text compaction would take over, but it had not
  • Loading branch information
srowen committed Jun 10, 2014
1 parent d70ef41 commit 787a449
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -554,18 +554,6 @@ private static int determineConsecutiveBinaryCount(CharSequence msg, byte[] byte
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
Expand Down

0 comments on commit 787a449

Please sign in to comment.