From 43d53f8dbe9c4b56ac17e78162812529a3267bda Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Mon, 3 Jun 2019 15:59:38 +0200 Subject: [PATCH] Simplify that I was *probably* trying to mimic a C ternary operator ;p --- src/calibre/devices/kobo/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 4c5692fa0a..15e90160e0 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -2705,7 +2705,7 @@ class KOBOTOUCH(KOBO): fpath = self.normalize_path(fpath.replace('/', os.sep)) # Never letterbox thumbnails, that's ugly. But for fullscreen covers, honor the setting. - letterbox = letterbox_fs_covers if is_full_size else False + letterbox = letterbox_fs_covers and is_full_size # NOTE: Full size means we have to fit *inside* the given boundaries. Thumbnails, on the other hand, are *expanded* around those boundaries. # In Qt, it'd mean full-screen covers are resized using Qt::KeepAspectRatio, while thumbnails are resized using Qt::KeepAspectRatioByExpanding