1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-05 22:53:52 +00:00

Sort annotations.

This commit is contained in:
Bartosz Taudul 2019-10-14 19:04:37 +02:00
parent 5c47467c88
commit 6de8e6987f

View File

@ -1433,6 +1433,7 @@ void View::HandleZoneViewMouse( int64_t timespan, const ImVec2& wpos, float w, d
ann->color = 0x888888;
m_selectedAnnotation = ann.get();
m_annotations.emplace_back( std::move( ann ) );
pdqsort_branchless( m_annotations.begin(), m_annotations.end(), []( const auto& lhs, const auto& rhs ) { return lhs->start < rhs->start; } );
}
m_highlight.active = false;
}