Update PPOCRLabel.py

pull/7778/head
Evezerest 2022-09-29 16:45:22 +08:00 committed by GitHub
parent 2ff9055c1a
commit 968c142e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -2716,9 +2716,8 @@ class MainWindow(QMainWindow):
self._update_shape_color(shape)
self.keyDialog.addLabelHistory(key_text)
# save changed shape
self.singleLabel(shape)
self.setDirty()
# save changed shape
self.setDirty()
def undoShapeEdit(self):
self.canvas.restoreShape()