diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2022-03-17 14:16:38 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals.cid@kdab.com> | 2022-03-18 01:32:57 +0100 |
commit | 6e23fc85805dd28c45ba04e14da6ae3ec49452a1 (patch) | |
tree | 5e76ed57a332710b52ec63e5c5dacfbb9db8526d /src/gui/image/qimage.cpp | |
parent | e10d613509fb606526fe1a0535dcceb81dbc7840 (diff) |
QImage::operator==: Also compare the image colorspace
Pick-to: 6.3 6.2
Change-Id: I4cb86d32492876791fe852f8c3123b7d4a69a5bd
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/image/qimage.cpp')
-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 d681c28d8d..b49b47989a 100644 --- a/src/gui/image/qimage.cpp +++ b/src/gui/image/qimage.cpp @@ -3986,7 +3986,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) { |