Commit ce992725 authored by Alexander Stippich's avatar Alexander Stippich
Browse files

fix the twain build

parent 8eeec9a6
......@@ -26,6 +26,7 @@
#define TWCPP_DOTRANSFER (0)
#include <QString>
#include <QImage>
#include <QDebug>
#include <cstring>
......@@ -598,7 +599,7 @@ void KSaneWidgetPrivate::ImageData(TW_MEMREF pdata, TW_IMAGEINFO &info)
ds.writeRawData(bits, size);
Q_EMIT ImageReady(baBmp, 0, 0, 0, (int)KSaneWidget::FormatBMP);
Q_EMIT qImageReady(QImage::fromData(data, "BMP"));
Q_EMIT qImageReady(QImage::fromData(baBmp, "BMP"));
GlobalUnlock(hDIB);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment