From 830e7162ebbaa4b52071d8ef8819c08399071e26 Mon Sep 17 00:00:00 2001 From: simplyWiri Date: Sat, 10 Sep 2022 17:09:04 +1000 Subject: [PATCH] Add missing TreePop in function which is called from inside a TreeNode --- server/TracyView_FindZone.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/TracyView_FindZone.cpp b/server/TracyView_FindZone.cpp index d8314041..12991d2f 100644 --- a/server/TracyView_FindZone.cpp +++ b/server/TracyView_FindZone.cpp @@ -75,7 +75,11 @@ void View::DrawZoneList( int id, const Vector>& zones ) const auto zsz = zones.size(); char buf[32]; sprintf( buf, "%i##zonelist", id ); - if( !ImGui::BeginTable( buf, 3, ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_Resizable | ImGuiTableFlags_Hideable | ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_Sortable | ImGuiTableFlags_ScrollY, ImVec2( 0, ImGui::GetTextLineHeightWithSpacing() * std::min( zsz + 1, 15 ) ) ) ) return; + if( !ImGui::BeginTable( buf, 3, ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_Resizable | ImGuiTableFlags_Hideable | ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_Sortable | ImGuiTableFlags_ScrollY, ImVec2( 0, ImGui::GetTextLineHeightWithSpacing() * std::min( zsz + 1, 15 ) ) ) ) + { + ImGui::TreePop(); + return; + } ImGui::TableSetupScrollFreeze( 0, 1 ); ImGui::TableSetupColumn( "Time from start" ); ImGui::TableSetupColumn( "Execution time", ImGuiTableColumnFlags_PreferSortDescending );