##// END OF EJS Templates
Bugfix for destruction of qlineseries
Michal Klocek -
r1069:c2064d29f258
parent child
Show More
@@ -76,6 +76,10 QLineSeries::QLineSeries(QLineSeriesPrivate &d,QObject *parent) : QXYSeries (d,p
76 76 */
77 77 QLineSeries::~QLineSeries()
78 78 {
79 Q_D(QLineSeries);
80 if(d->m_dataset){
81 d->m_dataset->removeSeries(this);
82 }
79 83 }
80 84
81 85 QAbstractSeries::QSeriesType QLineSeries::type() const
@@ -92,9 +92,7 QAbstractSeries::QAbstractSeries(QAbstractSeriesPrivate &d, QObject *parent) :
92 92 */
93 93 QAbstractSeries::~QAbstractSeries()
94 94 {
95 if(d_ptr->m_dataset){
96 d_ptr->m_dataset->removeSeries(this);
97 }
95 if(d_ptr->m_dataset) qFatal("Still binded series detected !");
98 96 }
99 97
100 98 /*!
General Comments 0
You need to be logged in to leave comments. Login now