restore byteCount

This commit is contained in:
alemuntoni 2020-06-24 11:03:04 +02:00
parent 70a61e4576
commit cc9ab779f3

View File

@ -200,7 +200,7 @@ void GLArea::pasteTile()
if (snapBuffer.isNull())
snapBuffer = QImage(tileBuffer.width() * ss.resolution, tileBuffer.height() * ss.resolution, tileBuffer.format());
uchar *snapPtr = snapBuffer.bits() + (tileBuffer.bytesPerLine() * tileCol) + ((totalCols * tileRow) * tileBuffer.sizeInBytes());
uchar *snapPtr = snapBuffer.bits() + (tileBuffer.bytesPerLine() * tileCol) + ((totalCols * tileRow) * tileBuffer.byteCount());
uchar *tilePtr = tileBuffer.bits();
for (int y=0; y < tileBuffer.height(); y++)