Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.0
-
None
-
fdf827381a5e27c1c4ff6e075196befe88440fb2
Description
One would assume that Qt uses implicit sharing so that in the following example:
QImage image(100,100,QImage::Format_RGB32);
image = image.scaled(100,100);
the second line should be a no-op.
This is easily fixed in QImage::scaled(), where
if (newSize == size())
return copy();
should be
if (newSize == size())
return*this;