From 9b793276736a63302bc1be7108f583eb604eaf59 Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 4 May 2016 20:22:57 +0200 Subject: [PATCH] BeginGroup() fixed using within Columns set (fix #630) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index b3e9a4b20..ae0ecd34b 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -8911,7 +8911,7 @@ void ImGui::BeginGroup() group_data.BackupLogLinePosY = window->DC.LogLinePosY; group_data.AdvanceCursor = true; - window->DC.IndentX = window->DC.CursorPos.x - window->Pos.x; + window->DC.IndentX = window->DC.CursorPos.x - window->Pos.x - window->DC.ColumnsOffsetX; window->DC.CursorMaxPos = window->DC.CursorPos; window->DC.CurrentLineHeight = 0.0f; window->DC.LogLinePosY = window->DC.CursorPos.y - 9999.0f;