summaryrefslogtreecommitdiff
path: root/fxbarcode/cbc_ean8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/cbc_ean8.cpp')
-rw-r--r--fxbarcode/cbc_ean8.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxbarcode/cbc_ean8.cpp b/fxbarcode/cbc_ean8.cpp
index 3b4369e80f..ce2cf2ba79 100644
--- a/fxbarcode/cbc_ean8.cpp
+++ b/fxbarcode/cbc_ean8.cpp
@@ -43,7 +43,7 @@ CFX_WideString CBC_EAN8::Preprocess(const CFX_WideStringC& contents) {
encodeContents += wchar_t(checksum - 0 + '0');
}
if (length > 8)
- encodeContents = encodeContents.Mid(0, 8);
+ encodeContents = encodeContents.Left(8);
return encodeContents;
}