fixed another listbox selection bug

a display position was searched for in a set of absolute positions
This commit is contained in:
ErrorFlynn 2019-07-06 14:18:24 -04:00 committed by GitHub
parent 417071e4b5
commit d845a82dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.