src/gui/kernel/qmime_win.cpp
changeset 30 5dc02b23752f
parent 19 fcece45ef507
--- a/src/gui/kernel/qmime_win.cpp	Wed Jun 23 19:07:03 2010 +0300
+++ b/src/gui/kernel/qmime_win.cpp	Tue Jul 06 15:10:48 2010 +0300
@@ -952,6 +952,8 @@
         QDataStream s(&ba, QIODevice::WriteOnly);
         s.setByteOrder(QDataStream::LittleEndian);// Intel byte order ####
         if (cf == CF_DIB) {
+            if (img.format() > QImage::Format_ARGB32)
+                img = img.convertToFormat(QImage::Format_RGB32);
             if (qt_write_dib(s, img))
                 return setData(ba, pmedium);
         } else {