Check if match table has content.

This commit is contained in:
Bartosz Taudul 2018-03-24 17:32:27 +01:00
parent d559da932f
commit 1219b72577

View File

@ -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, m_findZone.show && m_findZone.match[m_findZone.selMatch] == v->first, ImGuiSelectableFlags_SpanAllColumns ) )
if( ImGui::Selectable( name, m_findZone.show && !m_findZone.match.empty() && m_findZone.match[m_findZone.selMatch] == v->first, ImGuiSelectableFlags_SpanAllColumns ) )
{
m_findZone.show = true;
m_findZone.Reset();