mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
RideFile: If we have temperature but the first point have no value use 0 insteed of noTemp value.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user