##// END OF EJS Templates
Don't reserve space for chart title if it is empty....
Miikka Heikkinen -
r2794:05fa3caa7879
parent child
Show More
@@ -54,7 +54,7 void AbstractChartLayout::setGeometry(const QRectF &rect)
54
54
55 contentGeometry = calculateContentGeometry(contentGeometry);
55 contentGeometry = calculateContentGeometry(contentGeometry);
56
56
57 if (title && title->isVisible())
57 if (title && title->isVisible() && !title->text().isEmpty())
58 contentGeometry = calculateTitleGeometry(contentGeometry, title);
58 contentGeometry = calculateTitleGeometry(contentGeometry, title);
59
59
60 if (legend->isAttachedToChart() && legend->isVisible())
60 if (legend->isAttachedToChart() && legend->isVisible())
General Comments 0
You need to be logged in to leave comments. Login now