diff --git a/src/barchart/qbarseries.cpp b/src/barchart/qbarseries.cpp index 26c14b2..e5e06f1 100644 --- a/src/barchart/qbarseries.cpp +++ b/src/barchart/qbarseries.cpp @@ -607,6 +607,9 @@ bool QBarSeriesPrivate::append(QList sets) bool QBarSeriesPrivate::remove(QList sets) { Q_Q(QBarSeries); + if (sets.count() == 0) { + return false; + } foreach (QBarSet* set, sets) { if ((set == 0) || (!m_barSets.contains(set))) { // Fail if any of the sets is null or is not in series