mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Fix SEGV in AllPlot when smooth adjust
But only affected if temperature is available.
This commit is contained in:
@@ -522,7 +522,8 @@ AllPlot::recalc()
|
||||
totalAlt += altArray[i];
|
||||
if (!tempArray.empty() ) {
|
||||
if (tempArray[i] == RideFile::noTemp && i>0) {
|
||||
dp.temp = (i>0?list.back().temp:0.0);
|
||||
if (list.count() && i>0) dp.temp = list.back().temp;
|
||||
else dp.temp = 0.0f;
|
||||
totalTemp += dp.temp;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user