Tooltips, Disabled: fixed EndDisabledOverrideReenable() assertion when nesting a tooltip in a disabled block. (#9180, #7640)

Amend f953ebf9ca
This commit is contained in:
RegimantasSimkus
2026-01-19 17:05:13 +00:00
committed by ocornut
parent 7250fbde2e
commit e1217227b2
2 changed files with 3 additions and 1 deletions

View File

@@ -8259,8 +8259,8 @@ void ImGui::BeginDisabledOverrideReenable()
void ImGui::EndDisabledOverrideReenable()
{
ImGuiContext& g = *GImGui;
g.DisabledStackSize--;
IM_ASSERT(g.DisabledStackSize > 0);
g.DisabledStackSize--;
g.ItemFlagsStack.pop_back();
g.CurrentItemFlags = g.ItemFlagsStack.back();
g.Style.Alpha = g.CurrentWindowStack.back().DisabledOverrideReenableAlphaBackup;