diff options
Diffstat (limited to 'xfa/src/fxbarcode/datamatrix/BC_C40Encoder.cpp')
-rw-r--r-- | xfa/src/fxbarcode/datamatrix/BC_C40Encoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/src/fxbarcode/datamatrix/BC_C40Encoder.cpp b/xfa/src/fxbarcode/datamatrix/BC_C40Encoder.cpp index a1be45e291..01ececb4b7 100644 --- a/xfa/src/fxbarcode/datamatrix/BC_C40Encoder.cpp +++ b/xfa/src/fxbarcode/datamatrix/BC_C40Encoder.cpp @@ -138,7 +138,7 @@ int32_t CBC_C40Encoder::encodeChar(FX_WCHAR c, CFX_WideString& sb, int32_t& e) { } else if ((c >= 'A') && (c <= 'Z')) { sb += (FX_WCHAR)(c - 65 + 14); return 1; - } else if ((c >= '\0') && (c <= 0x1f)) { + } else if (c <= 0x1f) { sb += (FX_WCHAR)'\0'; sb += c; return 2; |