mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 03:30:20 +00:00
Merge remote-tracking branch 'origin/Applications/18.08'
This commit is contained in:
commit
345c211674
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue