Fix SEGV on delete ride in AllPlot hover

.. tries to traverse the ride data after its been deleted.
This commit is contained in:
Mark Liversedge
2014-12-21 21:53:30 +00:00
parent 39d5fb7a96
commit 22a34a5428
2 changed files with 3 additions and 2 deletions

View File

@@ -369,6 +369,7 @@ struct FitFileReaderState
default: ; // ignore it
}
}
qDebug()<<"lap"<<interval<<"has time="<<time<<"and start"<<this_start_time;
if (this_start_time == 0 || this_start_time-start_time < 0) {
//errors << QString("lap %1 has invalid start time").arg(interval);
this_start_time = start_time; // time was corrected after lap start