##// 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 #include "qpieseries.h"
33 #include "qpieseries.h"
34 #include "chartitem_p.h"
34 #include "chartitem_p.h"
35 #include "piesliceitem_p.h"
35 #include "piesliceitem_p.h"
36 #include <QPointer>
36
37
37 class QGraphicsItem;
38 class QGraphicsItem;
38 QTCOMMERCIALCHART_BEGIN_NAMESPACE
39 QTCOMMERCIALCHART_BEGIN_NAMESPACE
@@ -71,7 +72,7 private:
71
72
72 private:
73 private:
73 QHash<QPieSlice *, PieSliceItem *> m_sliceItems;
74 QHash<QPieSlice *, PieSliceItem *> m_sliceItems;
74 QPieSeries *m_series;
75 QPointer<QPieSeries> m_series;
75 QRectF m_rect;
76 QRectF m_rect;
76 QPointF m_pieCenter;
77 QPointF m_pieCenter;
77 qreal m_pieRadius;
78 qreal m_pieRadius;
@@ -362,6 +362,7 QPieSeries::QPieSeries(QObject *parent)
362 QPieSeries::~QPieSeries()
362 QPieSeries::~QPieSeries()
363 {
363 {
364 // NOTE: d_prt destroyed by QObject
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