浏览代码

Tables: Fixed stacked popups incorrectly accessing g.CurrentTable of parent-in-stack windows.

ocornut 5 年之前
父节点
当前提交
9372601322
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      imgui.cpp

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