summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap_x11.cpp
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-11-05 10:32:55 (GMT)
committeraxis <qt-info@nokia.com>2009-11-05 10:32:55 (GMT)
commitdd6a230f812b957137a2711c772284ee77ffccf4 (patch)
treea1f46718a295964ddaa9ab04c8222f6db3b19057 /src/gui/image/qpixmap_x11.cpp
parentf1a56f4db2f6d6c395ac6e7023b6e9184140d571 (diff)
parenteb75d1d6acf121fc08a591b4d6b34f1f39283bc2 (diff)
downloadQt-dd6a230f812b957137a2711c772284ee77ffccf4.zip
Qt-dd6a230f812b957137a2711c772284ee77ffccf4.tar.gz
Qt-dd6a230f812b957137a2711c772284ee77ffccf4.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6-s60
Diffstat (limited to 'src/gui/image/qpixmap_x11.cpp')
-rw-r--r--src/gui/image/qpixmap_x11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/image/qpixmap_x11.cpp b/src/gui/image/qpixmap_x11.cpp
index 8a0120a..c735031 100644
--- a/src/gui/image/qpixmap_x11.cpp
+++ b/src/gui/image/qpixmap_x11.cpp
@@ -1916,8 +1916,8 @@ QPixmap QX11PixmapData::transformed(const QTransform &transform,
free(dptr);
return bm;
} else { // color pixmap
- QPixmap pm;
- QX11PixmapData *x11Data = static_cast<QX11PixmapData*>(pm.data.data());
+ QX11PixmapData *x11Data = new QX11PixmapData(QPixmapData::PixmapType);
+ QPixmap pm(x11Data);
x11Data->flags &= ~QX11PixmapData::Uninitialized;
x11Data->xinfo = xinfo;
x11Data->d = d;