git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32375
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Find string for position
wxString wxListBox::GetString(int N) const
{
// Find string for position
wxString wxListBox::GetString(int N) const
{
- return m_stringArray[N] ;
+ wxCHECK_MSG( N >= 0 && N < m_noItems, wxEmptyString,
+ wxT("invalid index in wxListBox::GetString") );
+
+ return m_stringArray[N] ;
}
void wxListBox::DoInsertItems(const wxArrayString& items, int pos)
}
void wxListBox::DoInsertItems(const wxArrayString& items, int pos)