mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 11:47:26 -08:00
Fixes issue #908
This commit is contained in:
parent
72a21d158b
commit
ea3b04289d
|
@ -188,7 +188,10 @@ public final class HighLevelEncoder {
|
|||
int len = context.getCodewordCount();
|
||||
context.updateSymbolInfo();
|
||||
int capacity = context.getSymbolInfo().getDataCapacity();
|
||||
if (len < capacity && encodingMode != ASCII_ENCODATION && encodingMode != BASE256_ENCODATION) {
|
||||
if (len < capacity &&
|
||||
encodingMode != ASCII_ENCODATION &&
|
||||
encodingMode != BASE256_ENCODATION &&
|
||||
encodingMode != EDIFACT_ENCODATION) {
|
||||
context.writeCodeword('\u00fe'); //Unlatch (254)
|
||||
}
|
||||
//Padding
|
||||
|
|
Loading…
Reference in a new issue