Skip to content

Commit

Permalink
[#59] TrackEditor: Improvements and bugfixes (Part 84.2: Fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-nestorovic committed Aug 13, 2024
1 parent d987373 commit 4931e5d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Main/src/Image_TrackRW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -967,11 +967,10 @@
}

bool CImage::CTrackReader::CParseEventList::IntersectsWith(const TLogTimeInterval &ti) const{
const auto itEnd=logEnds.upper_bound(ti.tStart);
if (itEnd!=logEnds.cend())
if (ti.tStart<itEnd->second->tEnd)
return true;
return FindByStart(ti.tStart);
static_assert( std::is_same<decltype(ti.tStart),int>::value, "type must be integral" ); // ...
if (const auto it=FindByEnd( ti.tStart+1 )) // ... otherwise use 'upper_bound' here
return it->second->Intersect(ti);
return false;
}

void CImage::CTrackReader::CParseEventList::RemoveConsecutiveBeforeEnd(TLogTime tEndMax){
Expand Down

0 comments on commit 4931e5d

Please sign in to comment.