Skip to content

Commit

Permalink
Fix trim button not being activated by initial region specification
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Mar 15, 2024
1 parent 976f881 commit 9330217
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/calibre/gui2/dialogs/trim_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def do_region(self):
if d.exec() == QDialog.DialogCode.Accepted:
width, height = d.selection_size
self.canvas.set_selection_size_in_image_coords(width, height)
self.selection_changed(True)

def do_trim(self):
self.canvas.trim_image()
Expand Down

0 comments on commit 9330217

Please sign in to comment.