diff --git a/src/scatterseries/qscatterseries.cpp b/src/scatterseries/qscatterseries.cpp index e17489c..6b17764 100644 --- a/src/scatterseries/qscatterseries.cpp +++ b/src/scatterseries/qscatterseries.cpp @@ -101,7 +101,7 @@ void QScatterSeries::addData(QPointF value) */ void QScatterSeries::addData(QList points) { - d->m_data.append(data); + d->m_data.append(points); emit changed(); } @@ -135,7 +135,7 @@ QScatterSeries& QScatterSeries::operator << (QList value) */ void QScatterSeries::setData(QList points) { - d->m_data = data; + d->m_data = points; emit changed(); }