Skip to content

Commit

Permalink
Misc: Fix custom assertion macro failing to compile imgui.cpp (#5378)
Browse files Browse the repository at this point in the history
  • Loading branch information
WSSDude authored Jun 5, 2022
1 parent 7b5a8e4 commit 4789c7e
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 @@ -15658,7 +15658,7 @@ static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockN
ImGuiDockNode* root_payload_as_host = root_payload->DockNodeAsHost;
ImGuiDockNode* ref_node_for_rect = (host_node && !host_node->IsVisible) ? DockNodeGetRootNode(host_node) : host_node;
if (ref_node_for_rect)
IM_ASSERT(ref_node_for_rect->IsVisible);
IM_ASSERT(ref_node_for_rect->IsVisible == true);

// Filter, figure out where we are allowed to dock
ImGuiDockNodeFlags src_node_flags = root_payload_as_host ? root_payload_as_host->MergedFlags : root_payload->WindowClass.DockNodeFlagsOverrideSet;
Expand Down

0 comments on commit 4789c7e

Please sign in to comment.