From 0cbe4534fff56891220458cc64c0828d50c4c844 Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Sun, 22 Mar 2015 03:07:21 +0100 Subject: [PATCH] FIX: unselect item with ctrl-click in ordered listbox --- 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 2fdd474a..22b87cf3 100644 --- a/source/gui/widgets/listbox.cpp +++ b/source/gui/widgets/listbox.cpp @@ -2943,7 +2943,7 @@ namespace nana if (arg.shift) lister.select_display_range(lister.last_selected, item_pos, sel); else if (arg.ctrl) - sel = !item_proxy(essence_, item_pos).selected(); + sel = !item_proxy(essence_, index_pair (item_pos.cat, lister.absolute(item_pos))).selected(); else lister.select_for_all(false); }