summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Gottfried <sebastian.gottfried@posteo.de>2016-11-22 08:45:38 (GMT)
committerSebastian Gottfried <sebastian.gottfried@posteo.de>2016-11-22 08:45:38 (GMT)
commit9f44dbcf08eb396de8e1bdf4fe430abf492ad33b (patch)
tree4d5de38d95da3ed198f40532f71457eecd467d18
parent2e4c0a96eca311da4e7335f9ee06fa77a819ca05 (diff)
If there is no dimension set.
-rw-r--r--src/qml/LegendItem.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/LegendItem.qml b/src/qml/LegendItem.qml
index 9f45ac2..25cb73e 100644
--- a/src/qml/LegendItem.qml
+++ b/src/qml/LegendItem.qml
@@ -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: ""
}
}