From c881667c00655c98dba41deb942587e0041d0ed0 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 19 Jul 2021 21:45:44 +0200 Subject: [PATCH] Fix - amend 1ad1530 (range-select branch need the NextItemData in NavProcessItem) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 5d3f92b2..6c22c0c3 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -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) @@ -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)