Permalink
Browse files

Hide empty series plots in compare mode

.. check the curves are empty!
  • Loading branch information...
liversedge committed Jan 6, 2014
1 parent 37d8e7a commit 2ac02e7b0b8b936c6d2b91ff4a17bb202935dd87
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/AllPlotWindow.cpp
View
@@ -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 {

0 comments on commit 2ac02e7

Please sign in to comment.