diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 390c2b159575bf1c60387e42b5be3d917ba845f7..153837f8f5b686732c0d4cc8e4a6f9894a897186 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -2715,6 +2715,10 @@ class MainWindow(QMainWindow): self._update_shape_color(shape) self.keyDialog.addLabelHistory(key_text) + + # save changed shape + self.singleLabel(shape) + self.setDirty() def undoShapeEdit(self): self.canvas.restoreShape()