ColorPicker: Fix assertion when running in a collapsed window and dragging its title bar (#2389)

This commit is contained in:
omar
2019-03-01 00:05:39 +01:00
parent 1d0b4df3d9
commit 1c67d09c0b
2 changed files with 5 additions and 1 deletions

View File

@ -4219,8 +4219,10 @@ bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags fl
{
ImGuiContext& g = *GImGui;
ImGuiWindow* window = GetCurrentWindow();
ImDrawList* draw_list = window->DrawList;
if (window->SkipItems)
return false;
ImDrawList* draw_list = window->DrawList;
ImGuiStyle& style = g.Style;
ImGuiIO& io = g.IO;