Fixed mirrored data in Qr code encoding by inverting indexes as suggested by #77

This commit is contained in:
favoritas37 2018-04-12 02:30:30 +03:00
parent 9c361587a4
commit 669a9b5d7a
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ QImage QZXing::encodeData(const QString& data,
image = QImage(bytesRef->getWidth(), bytesRef->getHeight(), QImage::Format_ARGB32);
for(int i=0; i<bytesRef->getWidth(); i++)
for(int j=0; j<bytesRef->getHeight(); j++)
image.setPixel(i, j, bytes[i][j] ?
image.setPixel(i, j, bytes[j][i] ?
qRgb(0,0,0) :
qRgb(255,255,255));