Fix a crash if font information is missing

Fix #700
This commit is contained in:
Julien Duponchelle
2016-09-30 10:30:24 +02:00
parent a7184f32bd
commit a01b55f07b
2 changed files with 3 additions and 1 deletions

View File

@ -406,7 +406,7 @@ def _convert_label(label):
"""
Convert a label from 1.X to the new format
"""
style = qt_font_to_style(label["font"], label["color"])
style = qt_font_to_style(label.get("font"), label["color"])
return {
"text": label["text"],
"rotation": 0,