Hide empty series plots in compare mode

.. check the curves are empty!
This commit is contained in:
Mark Liversedge
2014-01-06 18:25:52 +00:00
parent 77b5723661
commit 33dbcef9a2

View File

@@ -790,7 +790,7 @@ AllPlotWindow::compareChanged()
// now remove any series plots that are empty
for(int i=0; i<seriesPlots.count();) {
if (seriesPlots[i]->compares.count() == 0) {
if (seriesPlots[i]->compares.count() == 0 || seriesPlots[i]->compares[0]->data()->size() == 0) {
delete seriesPlots[i];
seriesPlots.removeAt(i);
} else {