diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2010-01-13 12:39:25 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2010-01-13 13:39:19 (GMT) |
commit | 83ddf9cae0ef33aa0f07d7ea93460e5366efd786 (patch) | |
tree | f007568cbab8e8502f314e382727c72601e9195e | |
parent | 6c56de757f235f7c18c51ba7215acc4127a8510c (diff) | |
download | Qt-83ddf9cae0ef33aa0f07d7ea93460e5366efd786.zip Qt-83ddf9cae0ef33aa0f07d7ea93460e5366efd786.tar.gz Qt-83ddf9cae0ef33aa0f07d7ea93460e5366efd786.tar.bz2 |
Removed pointless image comparison in raster colorize filter.
This test is meant to check whether the grayscale operation is done
in-place or not.
Task-number: QTBUG-6901
Reviewed-by: Bjørn Erik Nilsen
-rw-r--r-- | src/gui/image/qpixmapfilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpixmapfilter.cpp b/src/gui/image/qpixmapfilter.cpp index 30fb7a3..37a6a18 100644 --- a/src/gui/image/qpixmapfilter.cpp +++ b/src/gui/image/qpixmapfilter.cpp @@ -953,7 +953,7 @@ static void grayscale(const QImage &image, QImage &dest, const QRect& rect = QRe srcRect = dest.rect(); destRect = dest.rect(); } - if (image != dest) { + if (&image != &dest) { destRect.moveTo(QPoint(0, 0)); } |