src/gui/image/qnativeimage.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
--- a/src/gui/image/qnativeimage.cpp	Fri Apr 16 15:50:13 2010 +0300
+++ b/src/gui/image/qnativeimage.cpp	Mon May 03 13:17:34 2010 +0300
@@ -182,7 +182,7 @@
             qWarning() << "Error while marking the shared memory segment to be destroyed";
         ok = (xshminfo.shmaddr != (char*)-1);
         if (ok)
-            image = QImage((uchar *)xshmimg->data, width, height, systemFormat());
+            image = QImage((uchar *)xshmimg->data, width, height, format);
     }
     xshminfo.readOnly = false;
     if (ok)