From e1f8fed73407327e2dcc8a916ca28253f0f5edcc Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 30 Aug 2015 17:25:26 +0100 Subject: [PATCH] Separator(): removed unnecessary computation + comment. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 97e45b2b..e1523e81 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -8397,7 +8397,7 @@ void ImGui::Separator() x1 += window->DC.ColumnsStartX; const ImRect bb(ImVec2(x1, window->DC.CursorPos.y), ImVec2(x2, window->DC.CursorPos.y)); - ItemSize(ImVec2(0.0f, bb.GetSize().y)); // NB: we don't provide our width so that it doesn't get feed back into AutoFit + ItemSize(ImVec2(0.0f, 0.0f)); // NB: we don't provide our width so that it doesn't get feed back into AutoFit // FIXME: Height should be 1.0f not 0.0f ? if (!ItemAdd(bb, NULL)) { if (window->DC.ColumnsCount > 1)