mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-16 08:55:39 +01:00
py310: Yet another float->int
This commit is contained in:
parent
ff1ee01b3b
commit
c3925db827
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ def keep_ar(self, which):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue