From d559da932f45a57b53200a4e19d7cca2c558b1ad Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 24 Mar 2018 17:29:25 +0100 Subject: [PATCH] Highlight source location displayed in find zone window. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 1ef17744..d282c0a5 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3516,7 +3516,7 @@ void View::DrawStatistics() auto& srcloc = m_worker.GetSourceLocation( v->first ); 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.Reset();