summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/datamatrix/BC_TextEncoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/src/fxbarcode/datamatrix/BC_TextEncoder.cpp')
-rw-r--r--xfa/src/fxbarcode/datamatrix/BC_TextEncoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/src/fxbarcode/datamatrix/BC_TextEncoder.cpp b/xfa/src/fxbarcode/datamatrix/BC_TextEncoder.cpp
index 61e8f7dec2..ec340f30e7 100644
--- a/xfa/src/fxbarcode/datamatrix/BC_TextEncoder.cpp
+++ b/xfa/src/fxbarcode/datamatrix/BC_TextEncoder.cpp
@@ -50,7 +50,7 @@ int32_t CBC_TextEncoder::encodeChar(FX_WCHAR c,
sb += (FX_WCHAR)(c - 97 + 14);
return 1;
}
- if (c >= '\0' && c <= 0x1f) {
+ if (c <= 0x1f) {
sb += (FX_WCHAR)'\0';
sb += c;
return 2;