fixed SetSelection(-1) for controls with multiple selection (patch 1537282)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -264,7 +264,10 @@ void wxVListBox::SetSelection(int selection)
|
||||
|
||||
if ( HasMultipleSelection() )
|
||||
{
|
||||
Select(selection);
|
||||
if (selection != wxNOT_FOUND)
|
||||
Select(selection);
|
||||
else
|
||||
DeselectAll();
|
||||
m_anchor = selection;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user