From d845a82dc4e1412b57713f760193a4fa39cec2de Mon Sep 17 00:00:00 2001 From: ErrorFlynn Date: Sat, 6 Jul 2019 14:18:24 -0400 Subject: [PATCH] fixed another listbox selection bug a display position was searched for in a set of absolute positions --- source/gui/widgets/listbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/widgets/listbox.cpp b/source/gui/widgets/listbox.cpp index 7dcb2b43..7201af43 100644 --- a/source/gui/widgets/listbox.cpp +++ b/source/gui/widgets/listbox.cpp @@ -4334,7 +4334,7 @@ namespace nana else { auto selected = lister.pick_items(true); - if (selected.cend() != std::find(selected.cbegin(), selected.cend(), item_pos)) + if (selected.cend() != std::find(selected.cbegin(), selected.cend(), abs_item_pos)) { //If the current selected one has been selected before selecting, remains the selection states for all //selected items. But these items will be unselected when the mouse is released.