Index: xfa/fxbarcode/oned/BC_OnedCodaBarReader.cpp |
diff --git a/xfa/fxbarcode/oned/BC_OnedCodaBarReader.cpp b/xfa/fxbarcode/oned/BC_OnedCodaBarReader.cpp |
index 5f8a0c25aa776c2fa2865f395bc96787e245c5e2..f767ffa16949e655a7ede82145fd0bef316147ba 100644 |
--- a/xfa/fxbarcode/oned/BC_OnedCodaBarReader.cpp |
+++ b/xfa/fxbarcode/oned/BC_OnedCodaBarReader.cpp |
@@ -106,7 +106,8 @@ CFX_ByteString CBC_OnedCodaBarReader::DecodeRow(int32_t rowNumber, |
} |
} |
if (result.GetLength() < 5) { |
- int32_t index = temp.Find(result.Mid(1, result.GetLength() - 1)); |
+ int32_t index = |
+ temp.Find(result.Mid(1, result.GetLength() - 1).AsByteStringC()); |
if (index == len - (result.GetLength() - 1)) { |
e = BCExceptionNotFound; |
return ""; |