mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix - AllPlot - Smoothing
... values in the ride plot deviate from the ride data since smoothing takes place even if the sample time is equal to the smoothing interval (for which the expectation is that the original samples are plotted)
This commit is contained in:
@@ -1184,8 +1184,8 @@ AllPlot::recalc(AllPlotObject *objects)
|
||||
return;
|
||||
}
|
||||
|
||||
// if recintsecs is longer than the smoothing there is no point in even trying
|
||||
int applysmooth = smooth < rideItem->ride()->recIntSecs() ? 0 : smooth;
|
||||
// if recintsecs is longer than the smoothing, or equal to the smoothing there is no point in even trying
|
||||
int applysmooth = smooth <= rideItem->ride()->recIntSecs() ? 0 : smooth;
|
||||
|
||||
// compare mode breaks
|
||||
if (context->isCompareIntervals && applysmooth == 0) applysmooth = 1;
|
||||
|
||||
Reference in New Issue
Block a user