Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Convert reference image to ARGB in updateCache()
Le Tien Datfd880d8e58fb
diff --git a/libs/ui/KisReferenceImage.cpp b/libs/ui/KisReferenceImage.cppindex bbde5eb32e..da775d6aa1 100644--- a/libs/ui/KisReferenceImage.cpp+++ b/libs/ui/KisReferenceImage.cpp@@ -120,6 +120,9 @@ struct KisReferenceImage::Private : public QSharedDatagc2.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;}