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>
This commit is contained in:
Albert Astals Cid 2022-03-17 14:16:38 +01:00
parent e10d613509
commit 6e23fc8580

View File

@ -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) {