AllPlot: Handle noTemp with no smooth fix #634

This commit is contained in:
Damien
2013-12-26 00:24:53 +01:00
committed by G Coco
parent e79306b314
commit 9cad95bd25

View File

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