Skip to content

Commit

Permalink
Fix - amend 1ad1530 (range-select branch need the NextItemData in Nav…
Browse files Browse the repository at this point in the history
…ProcessItem)
  • Loading branch information
ocornut committed Jul 19, 2021
1 parent 90bf996 commit c881667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7450,7 +7450,6 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu
g.LastItemData.Rect = bb;
g.LastItemData.InFlags = g.CurrentItemFlags;
g.LastItemData.StatusFlags = ImGuiItemStatusFlags_None;
g.NextItemData.Flags = ImGuiNextItemDataFlags_None;

// Directional navigation processing
if (id != 0)
Expand Down Expand Up @@ -7479,6 +7478,7 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu
}
#endif
}
g.NextItemData.Flags = ImGuiNextItemDataFlags_None;

#ifdef IMGUI_ENABLE_TEST_ENGINE
if (id != 0)
Expand Down

0 comments on commit c881667

Please sign in to comment.