diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2022-03-17 14:16:38 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-18 00:33:08 +0000 |
commit | 019d0dd4b49d5a0e9cbb73829158e798ea25fd86 (patch) | |
tree | 5d7f12fab8abe766ed2c48a602134b75de54462d | |
parent | 16ba55d35b5663841f79b43598aa785ffe41dcfa (diff) |
QImage::operator==: Also compare the image colorspace
Change-Id: I4cb86d32492876791fe852f8c3123b7d4a69a5bd
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
(cherry picked from commit 6e23fc85805dd28c45ba04e14da6ae3ec49452a1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/gui/image/qimage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |