Faster Deselect

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-11-05 19:07:22 +00:00
parent 8a5d65082d
commit 13220cca72

View File

@ -440,22 +440,7 @@ void wxListBox::Clear()
void wxListBox::SetSelection(int N, bool select)
{
if ( N == wxNOT_FOUND )
{
// unselect everything
int sel = MacGetSelection() ;
if ( sel != wxNOT_FOUND )
{
UInt32 id = sel + 1 ;
verify_noerr(
m_peer->SetSelectedItems( 1 , & id , kDataBrowserItemsRemove )
);
}
return;
}
wxCHECK_RET( N >= 0 && N < m_noItems,
wxCHECK_RET( N == wxNOT_FOUND || (N >= 0 && N < m_noItems) ,
wxT("invalid index in wxListBox::SetSelection") );
if ( N == wxNOT_FOUND )