From f1b0c9f0ecd0ca0e83e925f70aa6de089f0f3ca9 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Wed, 1 Oct 2025 19:15:10 +0200 Subject: [PATCH] add const so we know that QImage is not being modified --- src/imageformats/xcf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageformats/xcf.cpp b/src/imageformats/xcf.cpp index 8e05dac..40f9cc9 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -3204,7 +3204,7 @@ void XCFImageFormat::mergeLayerIntoImage(XCFImage &xcf_image) for (uint i = 0; i < layer.ncols; i++) { qint32 x = qint32(i * TILE_WIDTH); - QImage &tile = layer.image_tiles[j][i]; + const QImage &tile = layer.image_tiles[j][i]; if (x + layer.x_offset < XCF_MAX_IMAGE_WIDTH && y + layer.y_offset < XCF_MAX_IMAGE_HEIGHT) { painter.drawImage(x + layer.x_offset, y + layer.y_offset, tile); }