##// END OF EJS Templates
Fix crash when removing pie series from chart...
Miikka Heikkinen -
r2475:9e35a3a169ed
parent child
Show More
@@ -33,6 +33,7
33 33 #include "qpieseries.h"
34 34 #include "chartitem_p.h"
35 35 #include "piesliceitem_p.h"
36 #include <QPointer>
36 37
37 38 class QGraphicsItem;
38 39 QTCOMMERCIALCHART_BEGIN_NAMESPACE
@@ -71,7 +72,7 private:
71 72
72 73 private:
73 74 QHash<QPieSlice *, PieSliceItem *> m_sliceItems;
74 QPieSeries *m_series;
75 QPointer<QPieSeries> m_series;
75 76 QRectF m_rect;
76 77 QPointF m_pieCenter;
77 78 qreal m_pieRadius;
@@ -362,6 +362,7 QPieSeries::QPieSeries(QObject *parent)
362 362 QPieSeries::~QPieSeries()
363 363 {
364 364 // NOTE: d_prt destroyed by QObject
365 clear();
365 366 }
366 367
367 368 /*!
General Comments 0
You need to be logged in to leave comments. Login now