RideFile: If we have temperature but the first point have no value use 0 insteed of noTemp value.

This commit is contained in:
Damien
2013-04-06 22:40:23 +02:00
parent 8a2c04b626
commit e4ea81dcd8

View File

@@ -633,7 +633,7 @@ AllPlot::recalc()
if (!altArray.empty())
totalAlt += altArray[i];
if (!tempArray.empty() ) {
if (tempArray[i] == RideFile::noTemp && i>0) {
if (tempArray[i] == RideFile::noTemp) {
dp.temp = (i>0 && !list.empty()?list.back().temp:0.0);
totalTemp += dp.temp;
}