diff --git a/src/AllPlotWindow.cpp b/src/AllPlotWindow.cpp index 3c3c5a413..a388a1cef 100644 --- a/src/AllPlotWindow.cpp +++ b/src/AllPlotWindow.cpp @@ -790,7 +790,7 @@ AllPlotWindow::compareChanged() // now remove any series plots that are empty for(int i=0; icompares.count() == 0) { + if (seriesPlots[i]->compares.count() == 0 || seriesPlots[i]->compares[0]->data()->size() == 0) { delete seriesPlots[i]; seriesPlots.removeAt(i); } else {