Fix show efforts on CP Plot

.. showEfforts was not being initialised when the plot was created
   which resulted in sustained efforts always being shown regardless
   of the chart setting.
This commit is contained in:
Mark Liversedge
2021-05-22 15:24:47 +01:00
parent d83041282d
commit 6486e89145

View File

@@ -67,7 +67,8 @@ CPPlot::CPPlot(CriticalPowerWindow *parent, Context *context, bool rangemode) :
rideSeries(RideFile::watts),
isFiltered(false), shadeMode(2),
shadeIntervals(true), rangemode(rangemode),
showTest(true), showBest(true), filterBest(false), showPowerIndex(false), showPercent(false), showHeat(false), showPP(false), showHeatByDate(false), showDelta(false), showDeltaPercent(false),
showTest(true), showBest(true), filterBest(false), showPowerIndex(false), showPercent(false), showHeat(false),
showEffort(false), showPP(false), showHeatByDate(false), showDelta(false), showDeltaPercent(false),
plotType(0),
xAxisLinearOnSpeed(true),