Skip to content

Commit

Permalink
Fixed nested BeginDisabled()/EndDisabled() bug in Docking branch due …
Browse files Browse the repository at this point in the history
…to bad merge. (#4655, #4452, #4453, #4462)
  • Loading branch information
ocornut committed Oct 15, 2021
1 parent 9b59455 commit 05877c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ Other Changes:
- Misc: Fix MinGW DLL build issue (when IMGUI_API is defined). [@rokups]
- CI: Add MinGW DLL build to test suite. [@rokups]

Docking+Viewports Branch:

- Disabled: Fixed nested BeginDisabled()/EndDisabled() bug in Docking branch due to bad merge. (#4655, #4452, #4453, #4462)


-----------------------------------------------------------------------
VERSION 1.85 (Released 2021-10-12)
Expand Down
1 change: 0 additions & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7187,7 +7187,6 @@ void ImGui::BeginDisabled(bool disabled)
{
ImGuiContext& g = *GImGui;
bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0;
g.DisabledAlphaBackup = g.Style.Alpha;
if (!was_disabled && disabled)
{
g.DisabledAlphaBackup = g.Style.Alpha;
Expand Down

0 comments on commit 05877c1

Please sign in to comment.