##// END OF EJS Templates
Fix crash in ChartDataSet::attachAxis()...
Kimmo Leppälä -
r2669:0a9f98e61ba3
parent child
Show More
@@ -180,9 +180,11 void ChartDataSet::removeAxis(QAbstractAxis *axis)
180 */
180 */
181 bool ChartDataSet::attachAxis(QAbstractSeries *series,QAbstractAxis *axis)
181 bool ChartDataSet::attachAxis(QAbstractSeries *series,QAbstractAxis *axis)
182 {
182 {
183 Q_ASSERT(series);
184 Q_ASSERT(axis);
183 Q_ASSERT(axis);
185
184
185 if (!series)
186 return false;
187
186 QList<QAbstractSeries *> attachedSeriesList = axis->d_ptr->m_series;
188 QList<QAbstractSeries *> attachedSeriesList = axis->d_ptr->m_series;
187 QList<QAbstractAxis *> attachedAxisList = series->d_ptr->m_axes;
189 QList<QAbstractAxis *> attachedAxisList = series->d_ptr->m_axes;
188
190
General Comments 0
You need to be logged in to leave comments. Login now