From be40ee9dbc5410b477ddfe5f422fbd0df12e2eaf Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 22 Jul 2018 00:13:23 +0200 Subject: [PATCH] Fix crash when there's no callstack. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b6646f9e..cf57e3b5 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4373,7 +4373,7 @@ void View::DrawFindZone() ImGui::PopID(); ImGui::SameLine(); ImGui::TextColored( ImVec4( 0.5f, 0.5f, 0.5f, 1.0f ), "(%s) %s", RealToString( v->second.zones.size(), true ), TimeToString( v->second.time ) ); - if( groupBy == FindZone::GroupBy::Callstack ) + if( groupBy == FindZone::GroupBy::Callstack && v->first != 0 ) { ImGui::SameLine(); SmallCallstackButton( "callstack", v->first, idx );