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