mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 20:07:01 +00:00
Tables: Fixed stacked popups incorrectly accessing g.CurrentTable of parent-in-stack windows.
This commit is contained in:
parent
eb18636e02
commit
9372601322
@ -2931,6 +2931,7 @@ static void SetCurrentWindow(ImGuiWindow* window)
|
|||||||
{
|
{
|
||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
g.CurrentWindow = window;
|
g.CurrentWindow = window;
|
||||||
|
g.CurrentTable = window ? window->DC.CurrentTable : NULL;
|
||||||
if (window)
|
if (window)
|
||||||
g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize();
|
g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user