From 669a9b5d7aadfb8d1030e7b475fa57255a3954e3 Mon Sep 17 00:00:00 2001 From: favoritas37 Date: Thu, 12 Apr 2018 02:30:30 +0300 Subject: [PATCH] Fixed mirrored data in Qr code encoding by inverting indexes as suggested by #77 --- src/QZXing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QZXing.cpp b/src/QZXing.cpp index 385272b..c89de07 100644 --- a/src/QZXing.cpp +++ b/src/QZXing.cpp @@ -514,7 +514,7 @@ QImage QZXing::encodeData(const QString& data, image = QImage(bytesRef->getWidth(), bytesRef->getHeight(), QImage::Format_ARGB32); for(int i=0; igetWidth(); i++) for(int j=0; jgetHeight(); j++) - image.setPixel(i, j, bytes[i][j] ? + image.setPixel(i, j, bytes[j][i] ? qRgb(0,0,0) : qRgb(255,255,255));