Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorsimplyWiri <finley.gooding@hotmail.com>2022-09-10 10:09:04 +0300
committersimplyWiri <finley.gooding@hotmail.com>2022-09-10 10:09:04 +0300
commit830e7162ebbaa4b52071d8ef8819c08399071e26 (patch)
tree19264a79d913cb0a663505c455d56142e5a7ef98 /server
parentae0fe3cc93b0e91680def5c5b8994898526cc45f (diff)
Add missing TreePop in function which is called from inside a TreeNode
Diffstat (limited to 'server')
-rw-r--r--server/TracyView_FindZone.cpp6
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 );