mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 11:47:26 -08:00
Closes #912
This commit is contained in:
parent
ea3b04289d
commit
5409e6b6fd
|
@ -66,7 +66,7 @@ final class EdifactEncoder implements Encoder {
|
|||
context.updateSymbolInfo();
|
||||
int available = context.getSymbolInfo().getDataCapacity() - context.getCodewordCount();
|
||||
int remaining = context.getRemainingCharacters();
|
||||
if (remaining == 0 && available <= 2) {
|
||||
if (remaining <= available && available <= 2) {
|
||||
return; //No unlatch
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue