Always display threads in their original appearance order.

This commit is contained in:
Bartosz Taudul 2017-09-22 02:02:43 +02:00
parent 3141d17988
commit 3ea18dcbfd

View File

@ -858,9 +858,9 @@ void View::DrawZones()
{
auto& timeline = v.timeline;
auto it = std::lower_bound( timeline.begin(), timeline.end(), m_zvStart, [] ( const auto& l, const auto& r ) { return l->end < r; } );
if( it == timeline.end() ) continue;
if( it != timeline.end() )
{
const auto zitend = std::lower_bound( timeline.begin(), timeline.end(), m_zvEnd, [] ( const auto& l, const auto& r ) { return l->start < r; } );
while( it < zitend )
{
auto& ev = **it;
@ -892,6 +892,7 @@ void View::DrawZones()
it++;
}
}
draw->AddText( wpos + ImVec2( 0, offset ), 0xFFFFFFFF, GetThreadString( v.id ) );