From 55093ea8fe0143b65ed1e1c22337c5c11016f58a Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 13 Mar 2015 12:44:04 +0000 Subject: [PATCH] Separator() logs itself as text --- imgui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 35b50820..3b0a6f86 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6487,6 +6487,10 @@ void ImGui::Separator() window->DrawList->AddLine(bb.Min, bb.Max, window->Color(ImGuiCol_Border)); + ImGuiState& g = *GImGui; + if (g.LogEnabled) + ImGui::LogText(STR_NEWLINE "--------------------------------"); + if (window->DC.ColumnsCount > 1) { PushColumnClipRect();