Fix exception when editing Note with italics/bold etc. in non English

Fixes #11284
This commit is contained in:
prculley 2019-08-28 08:28:41 -05:00 committed by Nick Hall
parent 7ec4a429a4
commit 6602843f5a

View File

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