Skip to content

Commit

Permalink
Don't use empty vectors for cheating unknown distances
Browse files Browse the repository at this point in the history
  • Loading branch information
masc4ii committed Jan 12, 2024
1 parent 0f3af5a commit 9cfba0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FitParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ bool FitParser::loadFit(QString fileName)
if( lapMesg->normalized_power < 65535 ) lap.normalizedPower = lapMesg->normalized_power;

m_sections.append( lap );
lastLapStartDistance = m_tourDistance.last();
if( !m_tourDistance.empty() ) lastLapStartDistance = m_tourDistance.last();
lapMinTemp = 9999;
lapPosGrade = 0;
lapNegGrade = 0;
Expand Down

0 comments on commit 9cfba0a

Please sign in to comment.