Fix a crash if font information is missing

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

No files matched your search

+1 -1
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,