diff --git a/src/barchart/qbarseries.cpp b/src/barchart/qbarseries.cpp index dac0e68..a8b92a1 100644 --- a/src/barchart/qbarseries.cpp +++ b/src/barchart/qbarseries.cpp @@ -37,6 +37,10 @@ QBarSeries::QBarSeries(QStringList categories, QObject *parent) : QSeries(parent) ,mModel(new BarChartModel(categories, this)) { + m_model = NULL; + m_mapCategories = -1; + m_mapBarBottom - 1; + m_mapBarTop - 1; } /*!