mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Fix #2105373 [I get this message if I try to crop a Cover picture manually:](https://bugs.launchpad.net/calibre/+bug/2105373)
This commit is contained in:
parent
7042e0fced
commit
58abe77cbc
@ -185,7 +185,7 @@ class TrimImage(QDialog):
|
||||
if rect:
|
||||
x, y, w, h = map(int, self.canvas.rect_for_trim())
|
||||
text = f'{int(w)}x{int(h)}'
|
||||
text = _('Size: {0}px Aspect ratio: {1:.3g}').format(text, w / h)
|
||||
text = _('Size: {0}px Aspect ratio: {1:.3g}').format(text, (w / h) if h else 0)
|
||||
else:
|
||||
text = ''
|
||||
self.tr_sz.setText(text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user