Commit fe4b195b authored by Benjamin Löwe's avatar Benjamin Löwe
Browse files

Fix for Bug 282235 - Gwenview crashes after rotating picture

BUG: 282235
REVIEW: 107680
FIXED-IN: 4.10.0
parent 1d040015
......@@ -387,6 +387,9 @@ bool Document::prepareDownSampledImageForZoom(qreal zoom)
return false;
} else if (loadingState() == Loaded) {
// Resample image from the full one
if (isBusy()) {
return false;
}
d->mDownSampledImageMap[invertedZoom] = d->mImage.scaled(d->mImage.size() / invertedZoom, Qt::KeepAspectRatio, Qt::FastTransformation);
if (d->mDownSampledImageMap[invertedZoom].size().isEmpty()) {
d->mDownSampledImageMap[invertedZoom] = d->mImage;
......
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