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(); }