diff --git a/gramps/gui/widgets/styledtexteditor.py b/gramps/gui/widgets/styledtexteditor.py index b99d269fa..a2aafd592 100644 --- a/gramps/gui/widgets/styledtexteditor.py +++ b/gramps/gui/widgets/styledtexteditor.py @@ -774,7 +774,8 @@ class StyledTextEditor(Gtk.TextView): for style, style_value in changed_styles.items(): if style in types: action = self.uimanager.get_action( - self.action_group, str(StyledTextTagType(style)).upper()) + self.action_group, + StyledTextTagType(style).xml_str().upper()) action.change_state(Variant.new_boolean(style_value)) elif (style == StyledTextTagType.FONTFACE): self.fontface.set_text(style_value)