mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Correct crash for Joule 2.0 files without temperature for first seconds
This commit is contained in:
@@ -631,7 +631,7 @@ AllPlot::recalc()
|
||||
totalAlt += altArray[i];
|
||||
if (!tempArray.empty() ) {
|
||||
if (tempArray[i] == RideFile::noTemp && i>0) {
|
||||
dp.temp = (i>0?list.back().temp:0.0);
|
||||
dp.temp = (i>0 && !list.empty()?list.back().temp:0.0);
|
||||
totalTemp += dp.temp;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user