From b61b3117726cb8bccef83aad522ec47282b4747d Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 2 Apr 2015 10:56:59 +0100 Subject: [PATCH] Fixed Begin() returning true on collapsed windows that loaded settings #176 --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 5cf379c62..51ee2e661 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3408,7 +3408,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, const ImVec2& size_on_first_ window->Visible = false; // Return false if we don't intend to display anything to allow user to perform an early out optimization - window->SkipItems = (window->Collapsed || !window->Visible) && window->AutoFitFrames == 0; + window->SkipItems = (window->Collapsed || !window->Visible) && window->AutoFitFrames <= 0; return !window->SkipItems; }