Draft: renaming of anno style could fail

The error occurred if the style was in use.
This commit is contained in:
Roy-043
2023-11-06 14:24:49 +01:00
committed by Chris Hennes
parent 4c5d6ce303
commit 592547fd60

View File

@@ -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: