|
@@ -13256,8 +13256,8 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w
|
|
|
IMGUI_DEBUG_LOG_DOCKING("In node 0x%08X: %d new appearing tabs:%s\n", node->ID, tab_bar->Tabs.Size - tabs_unsorted_start, (tab_bar->Tabs.Size > tabs_unsorted_start + 1) ? " (will sort)" : "");
|
|
|
for (int tab_n = tabs_unsorted_start; tab_n < tab_bar->Tabs.Size; tab_n++)
|
|
|
IMGUI_DEBUG_LOG_DOCKING(" - Tab '%s' Order %d\n", tab_bar->Tabs[tab_n].Window->Name, tab_bar->Tabs[tab_n].Window->DockOrder);
|
|
|
- if (tab_bar->Tabs.Size > tabs_unsorted_start + 1)
|
|
|
- ImQsort(tab_bar->Tabs.Data + tabs_unsorted_start, tab_bar->Tabs.Size - tabs_unsorted_start, sizeof(ImGuiTabItem), TabItemComparerByDockOrder);
|
|
|
+ if (tab_bar->Tabs.Size > tabs_unsorted_start + 1)
|
|
|
+ ImQsort(tab_bar->Tabs.Data + tabs_unsorted_start, tab_bar->Tabs.Size - tabs_unsorted_start, sizeof(ImGuiTabItem), TabItemComparerByDockOrder);
|
|
|
}
|
|
|
|
|
|
// Selected newly added tabs, or persistent tab ID if the tab bar was just recreated
|
|
@@ -14144,6 +14144,7 @@ void ImGui::DockSpace(ImGuiID id, const ImVec2& size_arg, ImGuiDockNodeFlags fla
|
|
|
flags |= ImGuiDockNodeFlags_KeepAliveOnly;
|
|
|
|
|
|
IM_ASSERT((flags & ImGuiDockNodeFlags_DockSpace) == 0);
|
|
|
+ IM_ASSERT(id != 0);
|
|
|
ImGuiDockNode* node = DockContextFindNodeByID(ctx, id);
|
|
|
if (!node)
|
|
|
{
|