Error handling: Improve error handling and recovery for EndMenu()/EndCombo(). (#1651, #9165, #8499)

This commit is contained in:
ocornut
2026-01-14 14:59:39 +01:00
parent 791ad9b82d
commit 0d08927dae
3 changed files with 18 additions and 4 deletions

View File

@@ -12455,7 +12455,7 @@ void ImGui::EndPopup()
ImGuiWindow* window = g.CurrentWindow;
if ((window->Flags & ImGuiWindowFlags_Popup) == 0 || g.BeginPopupStack.Size == 0)
{
IM_ASSERT_USER_ERROR(0, "Calling EndPopup() too many times or in wrong window!");
IM_ASSERT_USER_ERROR(0, "Calling EndPopup() in wrong window!");
return;
}