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.
This commit is contained in:
Mark Liversedge
2014-01-06 12:59:51 +00:00
parent 530c12435f
commit 9aa5f46f48

View File

@@ -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();