mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-15 06:44:23 +00:00
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.
This commit is contained in:
@@ -240,7 +240,7 @@ void View::DrawSamplesStatistics( Vector<SymList>& 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user