@@ -350,7 +350,10 void MainWidget::clearBox() | |||
|
350 | 350 | |
|
351 | 351 | if (m_seriesCount > 0) { |
|
352 | 352 | QList<QBoxSet *> sets = m_series[0]->boxSets(); |
|
353 | sets.at(1)->clear(); | |
|
353 | if (sets.count() > 1) | |
|
354 | sets.at(1)->clear(); | |
|
355 | else | |
|
356 | qDebug() << "Create a series with at least two items first"; | |
|
354 | 357 | } else { |
|
355 | 358 | qDebug() << "Create a series first"; |
|
356 | 359 | } |
General Comments 0
You need to be logged in to leave comments.
Login now