diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 3640cc2a..cdb5bd49 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -1328,9 +1328,9 @@ void ImGui::ShowTestWindow(bool* opened) ImGui::TreePop(); } - bool opened = ImGui::TreeNode("Tree within single cell"); + bool node_opened = ImGui::TreeNode("Tree within single cell"); ImGui::SameLine(); ShowHelpMarker("NB: Tree node must be poped before ending the cell.\nThere's no storage of state per-cell."); - if (opened) + if (node_opened) { ImGui::Columns(2, "tree items"); ImGui::Separator();