From 5409e6b6fdc256ac1077f18c39ecda4e255a7595 Mon Sep 17 00:00:00 2001 From: Sean Owen Date: Thu, 16 Nov 2017 11:40:33 -0600 Subject: [PATCH] Closes #912 --- .../com/google/zxing/datamatrix/encoder/EdifactEncoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/zxing/datamatrix/encoder/EdifactEncoder.java b/core/src/main/java/com/google/zxing/datamatrix/encoder/EdifactEncoder.java index 3e739b4a5..8affd2c44 100644 --- a/core/src/main/java/com/google/zxing/datamatrix/encoder/EdifactEncoder.java +++ b/core/src/main/java/com/google/zxing/datamatrix/encoder/EdifactEncoder.java @@ -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 } }