mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
AllPlot: Handle noTemp with no smooth fix #634
This commit is contained in:
@@ -732,6 +732,8 @@ AllPlot::recalc()
|
||||
smoothTime.append(dp->secs/60);
|
||||
smoothDistance.append(useMetricUnits ? dp->km : dp->km * MILES_PER_KM);
|
||||
smoothAltitude.append(useMetricUnits ? dp->alt : dp->alt * FEET_PER_METER);
|
||||
if (dp->temp == RideFile::noTemp && !smoothTemp.empty())
|
||||
dp->temp = smoothTemp.last();
|
||||
smoothTemp.append(useMetricUnits ? dp->temp : dp->temp * FAHRENHEIT_PER_CENTIGRADE + FAHRENHEIT_ADD_CENTIGRADE);
|
||||
smoothWind.append(useMetricUnits ? dp->headwind : dp->headwind * MILES_PER_KM);
|
||||
smoothTorque.append(dp->nm);
|
||||
|
||||
Reference in New Issue
Block a user