Skip to content

Commit

Permalink
[#59] TrackEditor: Improvements and bugfixes (Part 79: Fixed determin…
Browse files Browse the repository at this point in the history
…ation of track total time)
  • Loading branch information
tomas-nestorovic committed Nov 13, 2023
1 parent b1f8dc3 commit 672e7aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Main/src/Image_TrackRW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@

TLogTime CImage::CTrackReader::GetTotalTime() const{
// returns the last recorded Time
return nLogTimes>0 ? logTimes[nLogTimes-1] : 0;
return std::max(
nLogTimes>0 ? logTimes[nLogTimes-1] : 0,
GetLastIndexTime()
);
}

TLogTime CImage::CTrackReader::ReadTime(){
Expand Down

0 comments on commit 672e7aa

Please sign in to comment.