mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-06 22:15:07 +00:00
Fixed FindWindowSettingsByID() being able to return a deleted setting.
This commit is contained in:
parent
47a07d8476
commit
8738ed88f0
1 changed files with 1 additions and 1 deletions
|
@ -12840,7 +12840,7 @@ ImGuiWindowSettings* ImGui::FindWindowSettingsByID(ImGuiID id)
|
|||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings))
|
||||
if (settings->ID == id)
|
||||
if (settings->ID == id && !settings->WantDelete)
|
||||
return settings;
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue