Auto extend workout plot when no workout selected

If no workout is selected (and ERGO/SLOPE mode are also not
selected) then the plot does not extend once you workout
beyond the first hour.

This was due to an uninitialised variable (ergFile) this patch
fixes that.

Fixes #515.
This commit is contained in:
Mark Liversedge
2011-11-16 21:11:48 +00:00
parent dc3e06ba34
commit ded5c2c43b

View File

@@ -174,6 +174,7 @@ ErgFilePlot::ErgFilePlot(MainWindow *main) : main(main)
NowCurve->setYAxis(QwtPlot::yLeft);
bydist = false;
ergFile = NULL;
setAutoReplot(false);
}