diff --git a/src/charts/linechart/linechartitem.cpp b/src/charts/linechart/linechartitem.cpp index ba39098..2117da0 100644 --- a/src/charts/linechart/linechartitem.cpp +++ b/src/charts/linechart/linechartitem.cpp @@ -70,8 +70,7 @@ QPainterPath LineChartItem::shape() const void LineChartItem::updateGeometry() { - m_points = geometryPoints(); - const QVector &points = m_points; + const QVector &points = geometryPoints(); if (points.size() == 0) { prepareGeometryChange(); diff --git a/src/charts/linechart/linechartitem_p.h b/src/charts/linechart/linechartitem_p.h index 846ea78..321a8f6 100644 --- a/src/charts/linechart/linechartitem_p.h +++ b/src/charts/linechart/linechartitem_p.h @@ -74,7 +74,6 @@ private: QPainterPath m_fullPath; QPainterPath m_shapePath; - QVector m_points; QRectF m_rect; QPen m_linePen; bool m_pointsVisible;