From a1ef58eface866c3d8abffeb7593460413bdf64f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 25 Jul 2026 22:43:54 +0200 Subject: [PATCH] Remove an unreachable leaf flag ternary. The tree node is only drawn when the count is greater than zero, so the leaf flag could never be selected. Use the plain TreeNode call. --- profiler/src/profiler/TracyView_Samples.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_Samples.cpp b/profiler/src/profiler/TracyView_Samples.cpp index 84916f7a..9440df00 100644 --- a/profiler/src/profiler/TracyView_Samples.cpp +++ b/profiler/src/profiler/TracyView_Samples.cpp @@ -240,7 +240,7 @@ void View::DrawSamplesStatistics( Vector& data, int64_t timeRange, uint if( v.count > 0 && v.symAddr != 0 ) { ImGui::PushID( v.symAddr ); - expand = ImGui::TreeNodeEx( "", v.count == 0 ? ImGuiTreeNodeFlags_Leaf : 0 ); + expand = ImGui::TreeNode( "" ); ImGui::PopID(); ImGui::SameLine(); }