commit | 9372601322c620640e5a8c709d51a211bc663e54 | [log] [tgz] |
---|---|---|
author | ocornut <omarcornut@gmail.com> | Mon Aug 17 13:25:27 2020 +0200 |
committer | ocornut <omarcornut@gmail.com> | Fri Dec 04 19:15:23 2020 +0100 |
tree | 9a6914030d047e14ad75806f683744dcd2a54ba4 | |
parent | eb18636e0287d90a3756115d90b99f4a7201e638 [diff] |
Tables: Fixed stacked popups incorrectly accessing g.CurrentTable of parent-in-stack windows.
diff --git a/imgui.cpp b/imgui.cpp index bc1ac4b..e12cbae 100644 --- a/imgui.cpp +++ b/imgui.cpp
@@ -2931,6 +2931,7 @@ { ImGuiContext& g = *GImGui; g.CurrentWindow = window; + g.CurrentTable = window ? window->DC.CurrentTable : NULL; if (window) g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); }