better check of parameter in Delete() (2nd part of patch 646145)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d00b880a79
commit
f7a201b94e
@ -274,7 +274,8 @@ void wxListBox::Clear()
|
||||
|
||||
void wxListBox::Delete(int n)
|
||||
{
|
||||
wxCHECK_RET( n < GetCount(), _T("invalid index in wxListBox::Delete") );
|
||||
wxCHECK_RET( n >= 0 && n < GetCount(),
|
||||
_T("invalid index in wxListBox::Delete") );
|
||||
|
||||
// do it before removing the index as otherwise the last item will not be
|
||||
// refreshed (as GetCount() will be decremented)
|
||||
|
Loading…
Reference in New Issue
Block a user