From cdce1f69d947a4b5f90dc7c7e8195d052e7ce89b Mon Sep 17 00:00:00 2001 From: Evezerest <50011306+Evezerest@users.noreply.github.com> Date: Thu, 29 Sep 2022 16:48:33 +0800 Subject: [PATCH] Merge pull request #7778 from whjdark/patch-2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [bug fix] KIE模式下关键字无法保存 --- PPOCRLabel/PPOCRLabel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 390c2b15..0a3ae1cb 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -2715,6 +2715,9 @@ class MainWindow(QMainWindow): self._update_shape_color(shape) self.keyDialog.addLabelHistory(key_text) + + # save changed shape + self.setDirty() def undoShapeEdit(self): self.canvas.restoreShape() -- GitLab