TODO, minor tweak

This commit is contained in:
omar
2017-09-04 13:03:04 +02:00
parent e8dbf1c795
commit 8fbe8709f9
2 changed files with 4 additions and 1 deletions

View File

@ -1956,7 +1956,7 @@ bool ImGui::IsClippedEx(const ImRect& bb, const ImGuiID* id, bool clip_even_when
ImGuiContext& g = *GImGui;
ImGuiWindow* window = GetCurrentWindowRead();
if (!bb.Overlaps(window->ClipRect))
if (!id || *id != GImGui->ActiveId)
if (!id || *id != g.ActiveId)
if (clip_even_when_logged || !g.LogEnabled)
return true;
return false;