Fix an error when importing old topology without color for label

Fix #736
This commit is contained in:
Julien Duponchelle committed 2016-10-24 14:58:14 +02:00
1 parent ac1eef256f
commit 10e7b32409
2 files changed
+3 -1

No files matched your search

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