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

This commit is contained in:
ocornut 2023-10-16 11:41:18 +02:00
parent 83c4336828
commit 4521dec85d

View File

@ -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);