mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Issue #166 handle a shift to byte mode properly outside of a compaction mode handler
This commit is contained in:
parent
e28b0116e0
commit
d70ef416ec
|
@ -110,9 +110,11 @@ final class DecodedBitStreamParser {
|
|||
break;
|
||||
case BYTE_COMPACTION_MODE_LATCH:
|
||||
case BYTE_COMPACTION_MODE_LATCH_6:
|
||||
case MODE_SHIFT_TO_BYTE_COMPACTION_MODE:
|
||||
codeIndex = byteCompaction(code, codewords, encoding, codeIndex, result);
|
||||
break;
|
||||
case MODE_SHIFT_TO_BYTE_COMPACTION_MODE:
|
||||
result.append((char) codewords[codeIndex++]);
|
||||
break;
|
||||
case NUMERIC_COMPACTION_MODE_LATCH:
|
||||
codeIndex = numericCompaction(codewords, codeIndex, result);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue