mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-23 02:04:22 +00:00
Backends: warning fixes (for docking branch).
This commit is contained in:
parent
b580c11303
commit
4fde473f38
6 changed files with 9 additions and 7 deletions
|
|
@ -17623,7 +17623,7 @@ static void ImGui::DockContextPruneUnusedSettingsNodes(ImGuiContext* ctx)
|
|||
{
|
||||
ImGuiDockNodeSettings* settings = &dc->NodesSettings[settings_n];
|
||||
ImGuiDockContextPruneNodeData* data = pool.GetByKey(settings->ID);
|
||||
if (data->CountWindows > 1)
|
||||
if (data == NULL || data->CountWindows > 1)
|
||||
continue;
|
||||
ImGuiDockContextPruneNodeData* data_root = (data->RootId == settings->ID) ? data : pool.GetByKey(data->RootId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue