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:
Vadim Zeitlin
2006-08-13 01:13:53 +00:00
parent 829d1102d2
commit ad6791377d

View File

@@ -264,7 +264,10 @@ void wxVListBox::SetSelection(int selection)
if ( HasMultipleSelection() )
{
Select(selection);
if (selection != wxNOT_FOUND)
Select(selection);
else
DeselectAll();
m_anchor = selection;
}