summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-12-31 00:16:59 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-01-07 10:48:15 (GMT)
commit0304ded29a510e098524395d693783f19660610c (patch)
tree83ae608d88bf92c0f7f3bef21371b76e7210677b
parent3d6c181d92bbd0bf55872992733b40e3cd6816af (diff)
downloadQt-0304ded29a510e098524395d693783f19660610c.zip
Qt-0304ded29a510e098524395d693783f19660610c.tar.gz
Qt-0304ded29a510e098524395d693783f19660610c.tar.bz2
Set serial number in QX11PixmapData::transformed
QX11PixmapData::transformed initializes a new QX11PixmapData object but doesn't set its serial number. Reviewed-by: Donald Carr <donald.carr@nokia.com> (cherry picked from commit eb94abb952114e826e02ba4562d9048e77f46644)
-rw-r--r--src/gui/image/qpixmap_x11.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap_x11.cpp b/src/gui/image/qpixmap_x11.cpp
index 63f04cf..1e4d58f 100644
--- a/src/gui/image/qpixmap_x11.cpp
+++ b/src/gui/image/qpixmap_x11.cpp
@@ -1932,6 +1932,8 @@ QPixmap QX11PixmapData::transformed(const QTransform &transform,
x11Data->hd = (Qt::HANDLE)XCreatePixmap(X11->display,
RootWindow(X11->display, xinfo.screen()),
w, h, d);
+ x11Data->setSerialNumber(++qt_pixmap_serial);
+
#ifndef QT_NO_XRENDER
if (X11->use_xrender) {
XRenderPictFormat *format = x11Data->d == 32