Don't fail on unknow font family
issue2617 review399004 (transplanted from 03432c9a3c3db53087a8e83c5ca0da58069ab62a)
This commit is contained in:
1 parent
514f085711
commit
1bb9d7d370
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