From 5fd5091efdeb076c5b02808e44ff6534b02d05d4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 12 Apr 2020 23:18:38 +0200 Subject: [PATCH] Fix handling of unknown symbols. --- server/TracyView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 06cf278c..1a5e7e57 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11537,7 +11537,7 @@ void View::DrawStatistics() bool expand = false; if( !m_statSeparateInlines ) { - if( v.count > 0 ) + if( v.count > 0 && v.symAddr != 0 ) { ImGui::PushID( v.symAddr ); expand = ImGui::TreeNodeEx( "", v.count == 0 ? ImGuiTreeNodeFlags_Leaf : 0 ); @@ -11569,7 +11569,7 @@ void View::DrawStatistics() ImGui::SameLine(); ImGui::TextDisabled( "(%s)", parentName ); } - if( !m_statSeparateInlines && v.count > 0 ) + if( !m_statSeparateInlines && v.count > 0 && v.symAddr != 0 ) { ImGui::SameLine(); ImGui::TextDisabled( "(+%s)", RealToString( v.count ) );