Browse Source

Docking: Fixed DockNodeBeginAmendTabBar() asserting on first call since ef8ff1b

ocornut 1 year ago
parent
commit
4521dec85d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      imgui.cpp

+ 2 - 0
imgui.cpp

@@ -16746,6 +16746,8 @@ bool ImGui::DockNodeBeginAmendTabBar(ImGuiDockNode* node)
         return false;
     if (node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly)
         return false;
+    if (node->TabBar->ID == 0)
+        return false;
     Begin(node->HostWindow->Name);
     PushOverrideID(node->ID);
     bool ret = BeginTabBarEx(node->TabBar, node->TabBar->BarRect, node->TabBar->Flags);