mirror of https://github.com/status-im/qzxing.git
Fixing Bug
Was not returning the correct barcode format once decoded. Was because the Decoder Format is a bitshifted Enum
This commit is contained in:
parent
f4740d6e44
commit
fd25154102
|
@ -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<<fmt);
|
||||
charSet_ = QString::fromStdString(res->getCharSet());
|
||||
if (!charSet_.isEmpty()) {
|
||||
QTextCodec *codec = QTextCodec::codecForName(res->getCharSet().c_str());
|
||||
|
|
Loading…
Reference in New Issue