From 5f5ba8eb119dc2c692a1cc81f4b93b482287f0ec Mon Sep 17 00:00:00 2001 From: Mikko Sivulainen Date: Wed, 1 Dec 2021 12:10:37 +0200 Subject: [PATCH] Docking: Fix typo (had no side effect) (#4778) Co-authored-by: Mikko Sivulainen --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 8341889a..adc4d6b8 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -13426,7 +13426,7 @@ void ImGui::DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req) IM_ASSERT(last_focused_node != NULL); ImGuiDockNode* last_focused_root_node = DockNodeGetRootNode(last_focused_node); IM_ASSERT(last_focused_root_node == DockNodeGetRootNode(payload_node)); - last_focused_node->SetLocalFlags(last_focused_node->LocalFlags |= ImGuiDockNodeFlags_CentralNode); + last_focused_node->SetLocalFlags(last_focused_node->LocalFlags | ImGuiDockNodeFlags_CentralNode); node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_CentralNode); last_focused_root_node->CentralNode = last_focused_node; }