[graphics/krita] libs/ui: Convert reference image to ARGB in updateCache()

Emmet O'Neill <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit fd880d8e58fb324b711b6320349ef1756cd79cd9 by Emmet O'Neill, on behalf of Le Tien Dat.
Committed on 13/08/2026 at 23:16.
Pushed by emmetoneill into branch 'master'.

Convert reference image to ARGB in updateCache()

This is to make sure because load...() doesn't execute when opening saved file

M  +3    -0    libs/ui/KisReferenceImage.cpp

https://invent.kde.org/graphics/krita/-/commit/fd880d8e58fb324b711b6320349ef1756cd79cd9

diff --git a/libs/ui/KisReferenceImage.cpp b/libs/ui/KisReferenceImage.cpp
index bbde5eb32e0..da775d6aa1a 100644
--- a/libs/ui/KisReferenceImage.cpp
+++ b/libs/ui/KisReferenceImage.cpp
@@ -120,6 +120,9 @@ struct KisReferenceImage::Private : public QSharedData
                 gc2.drawImage(QPoint(), image);
             }
         } else {
+            // Since loading saved reference images from file skip the load...() codepath
+            // Convert here make sure
+            image.convertTo(QImage::Format_ARGB32);
             cachedImage = image;
         }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.