From 6c82af2b965cb61fb490efe5689d79a4044d9b85 Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 22 Aug 2017 17:44:49 +0800 Subject: [PATCH] Navigation branch fix (we changed Clip) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index f00be193..aaad044b 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -11066,7 +11066,7 @@ void ImGui::BeginColumns(const char* id, int columns_count, ImGuiColumnsFlags fl float clip_x1 = ImFloor(0.5f + window->Pos.x + GetColumnOffset(column_index) - 1.0f); float clip_x2 = ImFloor(0.5f + window->Pos.x + GetColumnOffset(column_index + 1) - 1.0f); window->DC.ColumnsData[column_index].ClipRect = ImRect(clip_x1, -FLT_MAX, clip_x2, +FLT_MAX); - window->DC.ColumnsData[column_index].ClipRect.Clip(window->ClipRect); + window->ClipRect.Clip(window->DC.ColumnsData[column_index].ClipRect); } window->DrawList->ChannelsSplit(window->DC.ColumnsCount);