summaryrefslogtreecommitdiff
path: root/fxbarcode/cbc_upca.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/cbc_upca.cpp')
-rw-r--r--fxbarcode/cbc_upca.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxbarcode/cbc_upca.cpp b/fxbarcode/cbc_upca.cpp
index 6c2e08a9fb..85b5d549ab 100644
--- a/fxbarcode/cbc_upca.cpp
+++ b/fxbarcode/cbc_upca.cpp
@@ -44,7 +44,7 @@ CFX_WideString CBC_UPCA::Preprocess(const CFX_WideStringC& contents) {
encodeContents = byteString.UTF8Decode();
}
if (length > 12)
- encodeContents = encodeContents.Mid(0, 12);
+ encodeContents = encodeContents.Left(12);
return encodeContents;
}