Draft: renaming of anno style could fail
The error occurred if the style was in use.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user