From 9372601322c620640e5a8c709d51a211bc663e54 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 17 Aug 2020 13:25:27 +0200 Subject: [PATCH] Tables: Fixed stacked popups incorrectly accessing g.CurrentTable of parent-in-stack windows. --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index bc1ac4b7..e12cbae1 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2931,6 +2931,7 @@ static void SetCurrentWindow(ImGuiWindow* window) { ImGuiContext& g = *GImGui; g.CurrentWindow = window; + g.CurrentTable = window ? window->DC.CurrentTable : NULL; if (window) g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); }