Commit 9f44dbcf authored by Sebastian Gottfried's avatar Sebastian Gottfried
Browse files

LegendItem: Fix Reference Errors

If there is no dimension set.
parent 2e4c0a96
......@@ -47,7 +47,7 @@ Item {
verticalCenter: parent.verticalCenter
left: parent.left
}
color: dimension.color
color: dimension? dimension.color: "#000000"
width: height
height: label.font.pixelSize
radius: 4
......@@ -59,6 +59,6 @@ Item {
top: parent.top
right: parent.right
}
text: dimension.label
text: dimension? dimension.label: ""
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment