diff --git a/src/linechart/linechartitem.cpp b/src/linechart/linechartitem.cpp index 9ead231..1243fff 100644 --- a/src/linechart/linechartitem.cpp +++ b/src/linechart/linechartitem.cpp @@ -56,7 +56,9 @@ void LineChartItem::updateGeometry() if(points.size()==0) { + prepareGeometryChange(); m_path = QPainterPath(); + m_rect = QRect(); return; }