Don't fail on unknow font family
issue2617 review399004
This commit is contained in:
1 parent
1e62c1ec7c
commit
9b5cfc700d
1 file changed
+4
-2
@@ -145,8 +145,10 @@ class RichTextBox(TextBox):
|
||||
}
|
||||
self.tools['size'].child.set_active(self.sizes.index(
|
||||
self.current_font_prop['size']))
|
||||
self.tools['font_family'].child.set_active(self.families.index(
|
||||
self.current_font_prop['font_family']))
|
||||
font_family = self.current_font_prop['font_family']
|
||||
if font_family in self.families:
|
||||
self.tools['font_family'].child.set_active(self.families.index(
|
||||
font_family))
|
||||
self.start_tags = {}
|
||||
self.end_tags = {}
|
||||
# Connect events
|
||||
|
||||
Reference in new issue
Block a user