From 8c3be2a766e9863c12947ed48de475932ab26373 Mon Sep 17 00:00:00 2001 From: Ira Hanson Date: Sat, 15 Aug 2020 14:04:25 -0500 Subject: [PATCH] Preserve cover aspect ratio in the download preview --- src/calibre/gui2/metadata/single_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/metadata/single_download.py b/src/calibre/gui2/metadata/single_download.py index d5ccd375fd..52f18a418e 100644 --- a/src/calibre/gui2/metadata/single_download.py +++ b/src/calibre/gui2/metadata/single_download.py @@ -653,7 +653,7 @@ class CoversModel(QAbstractListModel): # {{{ text = (src + '\n' + sz) scaled = pmap.scaled( int(CoverDelegate.ICON_SIZE[0] * pmap.devicePixelRatio()), int(CoverDelegate.ICON_SIZE[1] * pmap.devicePixelRatio()), - Qt.IgnoreAspectRatio, Qt.SmoothTransformation) + Qt.KeepAspectRatio, Qt.SmoothTransformation) scaled.setDevicePixelRatio(pmap.devicePixelRatio()) return (text, (scaled), pmap, waiting)