From 592547fd60f1a7740c045c1cbb7f0777f9bed21d Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Mon, 6 Nov 2023 14:24:49 +0100 Subject: [PATCH] Draft: renaming of anno style could fail The error occurred if the style was in use. --- src/Mod/Draft/draftguitools/gui_annotationstyleeditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/draftguitools/gui_annotationstyleeditor.py b/src/Mod/Draft/draftguitools/gui_annotationstyleeditor.py index 8a3b9c2c4f..9c5e6f8091 100644 --- a/src/Mod/Draft/draftguitools/gui_annotationstyleeditor.py +++ b/src/Mod/Draft/draftguitools/gui_annotationstyleeditor.py @@ -186,7 +186,7 @@ class AnnotationStyleEditor(gui_base.GuiCommandSimplest): if vobj.AnnotationStyle in self.renamed: # the style has been renamed # temporarily add the new style and switch to it - vobj.AnnotationStyle = vobj.AnnotationStyle + [self.renamed[vobj.AnnotationStyle]] + vobj.AnnotationStyle = [vobj.AnnotationStyle, self.renamed[vobj.AnnotationStyle]] vobj.AnnotationStyle = self.renamed[vobj.AnnotationStyle] if vobj.AnnotationStyle in styles: if vobj.AnnotationStyle in changedstyles: