Commit e9ba1298 authored by Boudewijn Rempt's avatar Boudewijn Rempt

On Win64, reader.supportsOption(QImageIOHandler::Size) crashes

Somewhere in the jpg library...
parent 5a7fb4a8
......@@ -41,7 +41,8 @@ void KisImageLoader::run()
qreal w = m_size;
qreal h = m_size;
if(reader.supportsOption(QImageIOHandler::Size)) {
#ifndef Q_OS_WIN
if (reader.supportsOption(QImageIOHandler::Size)) {
QSizeF imgSize = reader.size();
if(imgSize.width() > imgSize.height()) {
......@@ -53,6 +54,7 @@ void KisImageLoader::run()
w = imgSize.width() * div;
}
}
#endif
reader.setScaledSize(QSize(w,h));
data->image = reader.read();
......
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