@@ -158,7 +158,7 void LegendLayout::setAttachedGeometry(const QRectF &rect) | |||
|
158 | 158 | // If the items would occupy more space than is available, start truncating them |
|
159 | 159 | // from the longest one. |
|
160 | 160 | qreal availableGeometry = geometry.width() - right - left * 2 - itemMargins; |
|
161 | if (markerItemsWidth >= availableGeometry) { | |
|
161 | if (markerItemsWidth >= availableGeometry && legendWidthList.count() > 0) { | |
|
162 | 162 | bool truncated(false); |
|
163 | 163 | int count = legendWidthList.count(); |
|
164 | 164 | for (int i = 1; i < count; i++) { |
General Comments 0
You need to be logged in to leave comments.
Login now