Applied [ 821234 ] Fix: erroneous assertion failed wxListBox::SetSelection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d79df32cb6
commit
5955710c8b
@ -400,7 +400,8 @@ void wxListBox::Free()
|
||||
|
||||
void wxListBox::SetSelection(int N, bool select)
|
||||
{
|
||||
wxCHECK_RET( N >= 0 && N < m_noItems,
|
||||
wxCHECK_RET( N == wxNOT_FOUND ||
|
||||
(N >= 0 && N < m_noItems),
|
||||
wxT("invalid index in wxListBox::SetSelection") );
|
||||
|
||||
if ( HasMultipleSelection() )
|
||||
|
Loading…
Reference in New Issue
Block a user