mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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:
|
if rect:
|
||||||
x, y, w, h = map(int, self.canvas.rect_for_trim())
|
x, y, w, h = map(int, self.canvas.rect_for_trim())
|
||||||
text = f'{int(w)}x{int(h)}'
|
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:
|
else:
|
||||||
text = ''
|
text = ''
|
||||||
self.tr_sz.setText(text)
|
self.tr_sz.setText(text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user