Fix exception when editing Note with italics/bold etc. in non English
Fixes #11284
This commit is contained in:
parent
7ec4a429a4
commit
6602843f5a
@ -774,7 +774,8 @@ class StyledTextEditor(Gtk.TextView):
|
|||||||
for style, style_value in changed_styles.items():
|
for style, style_value in changed_styles.items():
|
||||||
if style in types:
|
if style in types:
|
||||||
action = self.uimanager.get_action(
|
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))
|
action.change_state(Variant.new_boolean(style_value))
|
||||||
elif (style == StyledTextTagType.FONTFACE):
|
elif (style == StyledTextTagType.FONTFACE):
|
||||||
self.fontface.set_text(style_value)
|
self.fontface.set_text(style_value)
|
||||||
|
Loading…
Reference in New Issue
Block a user