From cc9ab779f3af6ed62081fc89acde18016eaf8a5a Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Wed, 24 Jun 2020 11:03:04 +0200 Subject: [PATCH] restore byteCount --- src/meshlab/glarea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshlab/glarea.cpp b/src/meshlab/glarea.cpp index 771677276..cf00b314f 100644 --- a/src/meshlab/glarea.cpp +++ b/src/meshlab/glarea.cpp @@ -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++)