##// END OF EJS Templates
Bugfix: chartarea animation added functionl call insted of removed removed -> dangling pointer
Michal Klocek -
r648:8203d50669bc
parent child
Show More
@@ -265,7 +265,7 void ChartPresenter::handleSeriesRemoved(QSeries* series)
265 QAreaSeries* areaSeries = static_cast<QAreaSeries*>(series);
265 QAreaSeries* areaSeries = static_cast<QAreaSeries*>(series);
266 AreaChartItem* area = static_cast<AreaChartItem*>(item);
266 AreaChartItem* area = static_cast<AreaChartItem*>(item);
267 m_animator->removeAnimation(area->upperLineItem());
267 m_animator->removeAnimation(area->upperLineItem());
268 if(areaSeries->lowerSeries()) m_animator->addAnimation(area->lowerLineItem());
268 if(areaSeries->lowerSeries()) m_animator->removeAnimation(area->lowerLineItem());
269 }else
269 }else
270 m_animator->removeAnimation(item);
270 m_animator->removeAnimation(item);
271 }
271 }
General Comments 0
You need to be logged in to leave comments. Login now