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); }