From a2f65811717cfea701f8dd91c88ead53a45db08d Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 27 Jun 2023 10:57:08 +0200 Subject: [PATCH] Selectable: Fixed bad manual cherry-pick/merge (fixes 3ec128c) --- imgui_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index c97f5e3e3..fdcd21240 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -6528,7 +6528,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl if (pressed) MarkItemEdited(id); - if ((flags & ImGuiTreeNodeFlags_AllowItemOverlap) && g.ActiveId != id) // Because: we don't want to hover other while Active + if ((flags & ImGuiSelectableFlags_AllowItemOverlap) && g.ActiveId != id) // Because: we don't want to hover other while Active SetItemAllowOverlap(); // In this branch, Selectable() cannot toggle the selection so this will never trigger.