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