Faster Deselect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8a5d65082d
commit
13220cca72
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user