From 9aa5f46f48891318231cb9bf128eba4ea180ecde Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 6 Jan 2014 12:59:51 +0000 Subject: [PATCH] Fix compare by time / by distance bug .. silly typo mean't allplot was being used as a refrence when generating plots instead of fullplot .. this manifests itself as using the wrong plot for the 'bydist' boolean -- this is fine, unless you switch between by time and by distance whilst in compare mode. --- src/AllPlotWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AllPlotWindow.cpp b/src/AllPlotWindow.cpp index 9adb18ee1..e702e270c 100644 --- a/src/AllPlotWindow.cpp +++ b/src/AllPlotWindow.cpp @@ -651,7 +651,7 @@ AllPlotWindow::compareChanged() // referencing fullPlot for the user prefs etc AllPlot *ap = new AllPlot(this, context); ap->bydist = fullPlot->bydist; - ap->setDataFromObject(compareIntervalCurves[i], allPlot); + ap->setDataFromObject(compareIntervalCurves[i], fullPlot); // simpler to keep the indexes aligned if (!ci.isChecked()) ap->hide();