@@ -607,6 +607,9 bool QBarSeriesPrivate::append(QList<QBarSet* > sets) | |||||
607 | bool QBarSeriesPrivate::remove(QList<QBarSet* > sets) |
|
607 | bool QBarSeriesPrivate::remove(QList<QBarSet* > sets) | |
608 | { |
|
608 | { | |
609 | Q_Q(QBarSeries); |
|
609 | Q_Q(QBarSeries); | |
|
610 | if (sets.count() == 0) { | |||
|
611 | return false; | |||
|
612 | } | |||
610 | foreach (QBarSet* set, sets) { |
|
613 | foreach (QBarSet* set, sets) { | |
611 | if ((set == 0) || (!m_barSets.contains(set))) { |
|
614 | if ((set == 0) || (!m_barSets.contains(set))) { | |
612 | // Fail if any of the sets is null or is not in series |
|
615 | // Fail if any of the sets is null or is not in series |
General Comments 0
You need to be logged in to leave comments.
Login now