Skip to content

Commit

Permalink
ImDrawList: PushColumnsBackground(): Fixed incorrect assert. (#3163)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Jun 6, 2020
1 parent 5af8a8c commit 78d5ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7553,7 +7553,7 @@ void ImGui::PushColumnsBackground()
int cmd_size = window->DrawList->CmdBuffer.Size;
PushClipRect(columns->HostClipRect.Min, columns->HostClipRect.Max, false);
IM_UNUSED(cmd_size);
IM_ASSERT(cmd_size == window->DrawList->CmdBuffer.Size); // Being in channel 0 this should not have created an ImDrawCmd
IM_ASSERT(cmd_size >= window->DrawList->CmdBuffer.Size); // Being in channel 0 this should not have created an ImDrawCmd
}

void ImGui::PopColumnsBackground()
Expand Down

0 comments on commit 78d5ccf

Please sign in to comment.