From c7c1bf177b5bb4a3495a6b82e91c45eed46986f7 Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 28 May 2019 00:06:21 +0200 Subject: [PATCH] Docking: Fixed DockBuilderRemoveNode() from overwriting other parent node flags when trying to move the CentralNode flag. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index c3806d4b..7d50ce60 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -13492,7 +13492,7 @@ void ImGui::DockBuilderRemoveNode(ImGuiID node_id) DockBuilderRemoveNodeDockedWindows(node_id, true); DockBuilderRemoveNodeChildNodes(node_id); if (node->IsCentralNode() && node->ParentNode) - node->ParentNode->LocalFlags = ImGuiDockNodeFlags_CentralNode; + node->ParentNode->LocalFlags |= ImGuiDockNodeFlags_CentralNode; DockContextRemoveNode(ctx, node, true); }