From 177d100ef844edeb15984865d08a450ead8c4db8 2012-09-21 15:53:28 From: Michal Klocek Date: 2012-09-21 15:53:28 Subject: [PATCH] Adds aligment check for legend geomoetry calucaltion --- diff --git a/src/chartlayout.cpp b/src/chartlayout.cpp index 233af1e..3a6e371 100644 --- a/src/chartlayout.cpp +++ b/src/chartlayout.cpp @@ -190,6 +190,8 @@ QRectF ChartLayout::calculateLegendGeometry(const QRectF& geometry,QLegend* lege break; } default: { + legendRect = QRectF(0,0,0,0); + result = geometry; break; } }