mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix trim button not being activated by initial region specification
This commit is contained in:
parent
976f881eec
commit
9330217e9b
@ -134,6 +134,7 @@ class TrimImage(QDialog):
|
|||||||
if d.exec() == QDialog.DialogCode.Accepted:
|
if d.exec() == QDialog.DialogCode.Accepted:
|
||||||
width, height = d.selection_size
|
width, height = d.selection_size
|
||||||
self.canvas.set_selection_size_in_image_coords(width, height)
|
self.canvas.set_selection_size_in_image_coords(width, height)
|
||||||
|
self.selection_changed(True)
|
||||||
|
|
||||||
def do_trim(self):
|
def do_trim(self):
|
||||||
self.canvas.trim_image()
|
self.canvas.trim_image()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user