This commit is contained in:
Kovid Goyal 2024-03-15 05:33:03 +05:30
parent 9330217e9b
commit 9a38ad9121
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,6 @@ class TrimImage(QDialog):
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()

View File

@ -590,6 +590,7 @@ class Canvas(QWidget):
width * self.target.width() / i.width(), height * self.target.height() / i.height())
self.selection_state.current_mode = 'selected'
self.update()
self.selection_state_changed.emit(self.has_selection)
def mouseMoveEvent(self, ev):
changed = False