Merge remote-tracking branch 'origin/Applications/18.08'

This commit is contained in:
Albert Astals Cid 2018-07-28 23:14:44 +02:00
commit 345c211674

View file

@ -86,9 +86,9 @@ QVariant EpubDocument::loadResource(int type, const QUrl &name)
const int maxHeight = maxContentHeight();
const int maxWidth = maxContentWidth();
if(img.height() > maxHeight)
img = img.scaledToHeight(maxHeight);
img = img.scaledToHeight(maxHeight, Qt::SmoothTransformation);
if(img.width() > maxWidth)
img = img.scaledToWidth(maxWidth);
img = img.scaledToWidth(maxWidth, Qt::SmoothTransformation);
resource.setValue(img);
break;
}