From c3925db827e55522d89192a624dff481d1694129 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 16 Dec 2021 08:18:09 +0530 Subject: [PATCH] py310: Yet another float->int --- src/calibre/gui2/tweak_book/editor/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/editor/image.py b/src/calibre/gui2/tweak_book/editor/image.py index f82e5f17f9..9461ce0e90 100644 --- a/src/calibre/gui2/tweak_book/editor/image.py +++ b/src/calibre/gui2/tweak_book/editor/image.py @@ -58,7 +58,7 @@ class ResizeDialog(QDialog): # {{{ oval = val / self.aspect_ratio if which == 'width' else val * self.aspect_ratio other = getattr(self, '_height' if which == 'width' else '_width') other.blockSignals(True) - other.setValue(oval) + other.setValue(int(oval)) other.blockSignals(False) @property