Fix the disappearance of a variable :-)

This commit is contained in:
Raoul Snyman 2016-07-23 23:41:24 +02:00
parent c426b8c1a2
commit ebefc03674
1 changed files with 2 additions and 1 deletions

View File

@ -474,6 +474,7 @@ class ThemeXML(object):
if element.startswith('shadow') or element.startswith('outline'):
master = 'font_main'
# fix bold font
ret_value = None
if element == 'weight':
element = 'bold'
if value == 'Normal':
@ -482,7 +483,7 @@ class ThemeXML(object):
ret_value = True
if element == 'proportion':
element = 'size'
return False, master, element, ret_value
return False, master, element, ret_value if ret_value is not None else value
def _create_attr(self, master, element, value):
"""