diff options
author | simplyWiri <finley.gooding@hotmail.com> | 2022-09-10 10:09:04 +0300 |
---|---|---|
committer | simplyWiri <finley.gooding@hotmail.com> | 2022-09-10 10:09:04 +0300 |
commit | 830e7162ebbaa4b52071d8ef8819c08399071e26 (patch) | |
tree | 19264a79d913cb0a663505c455d56142e5a7ef98 /server | |
parent | ae0fe3cc93b0e91680def5c5b8994898526cc45f (diff) |
Add missing TreePop in function which is called from inside a TreeNode
Diffstat (limited to 'server')
-rw-r--r-- | server/TracyView_FindZone.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<short_ptr<ZoneEvent>>& 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<size_t>( 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<size_t>( zsz + 1, 15 ) ) ) ) + { + ImGui::TreePop(); + return; + } ImGui::TableSetupScrollFreeze( 0, 1 ); ImGui::TableSetupColumn( "Time from start" ); ImGui::TableSetupColumn( "Execution time", ImGuiTableColumnFlags_PreferSortDescending ); |