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