Skip to content

Commit

Permalink
Tabs: Fix initial tab state. Amend 3e6f948( (#5572)
Browse files Browse the repository at this point in the history
Somehow this only triggers a failing test in docking branch.
  • Loading branch information
ocornut committed Sep 9, 2022
1 parent 52d9ee0 commit cb48c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,7 @@ struct ImGuiTabItem
ImS16 IndexDuringLayout; // Index only used during TabBarLayout()
bool WantClose; // Marked as closed by SetTabItemClosed()

ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; }
ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; RequestedWidth = -1.0f; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; }
};

// Storage for a tab bar (sizeof() 152 bytes)
Expand Down

0 comments on commit cb48c81

Please sign in to comment.