diff --git a/src/QZXing.cpp b/src/QZXing.cpp index ac96692..0da4f3b 100644 --- a/src/QZXing.cpp +++ b/src/QZXing.cpp @@ -379,7 +379,7 @@ QString QZXing::decodeImage(const QImage &image, int maxWidth, int maxHeight, bo QString string = QString(res->getText()->getText().c_str()); if (!string.isEmpty() && (string.length() > 0)) { int fmt = res->getBarcodeFormat().value; - foundedFmt = decoderFormatToString(fmt); + foundedFmt = decoderFormatToString(1<getCharSet()); if (!charSet_.isEmpty()) { QTextCodec *codec = QTextCodec::codecForName(res->getCharSet().c_str());