Highlight source location displayed in find zone window.

This commit is contained in:
Bartosz Taudul 2018-03-24 17:29:25 +01:00
parent ae274d8e37
commit d559da932f

View File

@ -3516,7 +3516,7 @@ void View::DrawStatistics()
auto& srcloc = m_worker.GetSourceLocation( v->first ); auto& srcloc = m_worker.GetSourceLocation( v->first );
auto name = m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function ); auto name = m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function );
if( ImGui::Selectable( name, false, ImGuiSelectableFlags_SpanAllColumns ) ) if( ImGui::Selectable( name, m_findZone.show && m_findZone.match[m_findZone.selMatch] == v->first, ImGuiSelectableFlags_SpanAllColumns ) )
{ {
m_findZone.show = true; m_findZone.show = true;
m_findZone.Reset(); m_findZone.Reset();