diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-09 00:38:03 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-09 00:38:03 (GMT) |
commit | c04a6e34b3d4da24d3cc26e192bebff2d3b79d19 (patch) | |
tree | e2a5299daa1e53668e7f9adeac002f8fdd286f8a /src/gui/kernel/qmime_win.cpp | |
parent | 51900441b77df5cb4755aaf2cba8351bbfe15e71 (diff) | |
parent | db0c932bf816b76547798ec62336e25b453d29b8 (diff) | |
download | Qt-c04a6e34b3d4da24d3cc26e192bebff2d3b79d19.zip Qt-c04a6e34b3d4da24d3cc26e192bebff2d3b79d19.tar.gz Qt-c04a6e34b3d4da24d3cc26e192bebff2d3b79d19.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/gui/kernel/qmime_win.cpp')
-rw-r--r-- | src/gui/kernel/qmime_win.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qmime_win.cpp b/src/gui/kernel/qmime_win.cpp index 39633bf..2840843 100644 --- a/src/gui/kernel/qmime_win.cpp +++ b/src/gui/kernel/qmime_win.cpp @@ -952,6 +952,8 @@ bool QWindowsMimeImage::convertFromMime(const FORMATETC &formatetc, const QMimeD 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 { |