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:
parent
e10d613509
commit
6e23fc8580
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user