QWindowsMime: Fix loading of CF_DIB (non-v5)
Drag-dropping and image from for example photoshop didn't work in Qt6
due to a (probably?) copy paste error in the commit
8fa91c75ad
Pick-to: 6.7 6.5
Change-Id: I18dedc09596fe590e915e3aa526131f2d6957d8b
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
bb10
parent
e8e369714b
commit
5b7422f74d
|
|
@ -944,7 +944,7 @@ QVariant QWindowsMimeImage::convertToMime(const QString &mimeType, IDataObject *
|
|||
if (canGetData(CF_DIB, pDataObj)) {
|
||||
qCDebug(lcQpaMime) << "Decoding DIB";
|
||||
QImage img;
|
||||
QByteArray data = getData(CF_DIBV5, pDataObj);
|
||||
QByteArray data = getData(CF_DIB, pDataObj);
|
||||
QBuffer buffer(&data);
|
||||
if (readDib(buffer, img))
|
||||
return img;
|
||||
|
|
|
|||
Loading…
Reference in New Issue