Skip to content

Commit

Permalink
Hide empty series plots in compare mode
Browse files Browse the repository at this point in the history
.. check the curves are empty!
  • Loading branch information
liversedge committed Jan 6, 2014
1 parent 37d8e7a commit 2ac02e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AllPlotWindow.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit 2ac02e7

Please sign in to comment.