py310: Yet another float->int

This commit is contained in:
Kovid Goyal 2021-12-16 08:18:09 +05:30
parent ff1ee01b3b
commit c3925db827
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -58,7 +58,7 @@ class ResizeDialog(QDialog): # {{{
oval = val / self.aspect_ratio if which == 'width' else val * self.aspect_ratio oval = val / self.aspect_ratio if which == 'width' else val * self.aspect_ratio
other = getattr(self, '_height' if which == 'width' else '_width') other = getattr(self, '_height' if which == 'width' else '_width')
other.blockSignals(True) other.blockSignals(True)
other.setValue(oval) other.setValue(int(oval))
other.blockSignals(False) other.blockSignals(False)
@property @property