From 6602843f5a8ee7e3e9c2998841e65488f5f076f9 Mon Sep 17 00:00:00 2001 From: prculley Date: Wed, 28 Aug 2019 08:28:41 -0500 Subject: [PATCH] Fix exception when editing Note with italics/bold etc. in non English Fixes #11284 --- gramps/gui/widgets/styledtexteditor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)