Fix for [ 748805 ] Assert failure for specified situation in samples/controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1081,15 +1081,19 @@ void MyPanel::OnListBoxButtons( wxCommandEvent &event )
|
||||
}
|
||||
case ID_LISTBOX_SEL_NUM:
|
||||
{
|
||||
m_listbox->SetSelection( 2 );
|
||||
m_listboxSorted->SetSelection( 2 );
|
||||
if (m_listbox->GetCount() > 2)
|
||||
m_listbox->SetSelection( 2 );
|
||||
if (m_listboxSorted->GetCount() > 2)
|
||||
m_listboxSorted->SetSelection( 2 );
|
||||
m_lbSelectThis->WarpPointer( 40, 14 );
|
||||
break;
|
||||
}
|
||||
case ID_LISTBOX_SEL_STR:
|
||||
{
|
||||
m_listbox->SetStringSelection( _T("This") );
|
||||
m_listboxSorted->SetStringSelection( _T("This") );
|
||||
if (m_listbox->FindString(_T("This")) > -1)
|
||||
m_listbox->SetStringSelection( _T("This") );
|
||||
if (m_listboxSorted->FindString(_T("This")) > -1)
|
||||
m_listboxSorted->SetStringSelection( _T("This") );
|
||||
m_lbSelectNum->WarpPointer( 40, 14 );
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user