mirror of
https://github.com/ocornut/imgui.git
synced 2025-12-27 16:49:18 +00:00
ColorPicker: Fix assertion when running in a collapsed window and dragging its title bar (#2389)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user