Skip to content

Commit

Permalink
Docking: Fix typo (had no side effect) (#4778)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikko Sivulainen <mikko.sivulainen@supercell.com>
  • Loading branch information
sivu and mikkosivulainen authored Dec 1, 2021
1 parent 719d931 commit 5f5ba8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5f5ba8e

Please sign in to comment.