From 019d0dd4b49d5a0e9cbb73829158e798ea25fd86 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 17 Mar 2022 14:16:38 +0100 Subject: QImage::operator==: Also compare the image colorspace Change-Id: I4cb86d32492876791fe852f8c3123b7d4a69a5bd Reviewed-by: Allan Sandfeld Jensen (cherry picked from commit 6e23fc85805dd28c45ba04e14da6ae3ec49452a1) Reviewed-by: Qt Cherry-pick Bot --- src/gui/image/qimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp index a4743bff4d..87c8f8dde1 100644 --- a/src/gui/image/qimage.cpp +++ b/src/gui/image/qimage.cpp @@ -3961,7 +3961,7 @@ bool QImage::operator==(const QImage & i) const return false; // obviously different stuff? - if (i.d->height != d->height || i.d->width != d->width || i.d->format != d->format) + if (i.d->height != d->height || i.d->width != d->width || i.d->format != d->format || i.d->colorSpace != d->colorSpace) return false; if (d->format != Format_RGB32) { -- cgit v1.2.3