suppress warning if no entries in combobox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -787,7 +787,7 @@ int wxComboBox::FindString(const wxString& s) const
|
||||
|
||||
void wxComboBox::Select(int n)
|
||||
{
|
||||
wxCHECK_RET( (n >= 0) && (n < GetCount()), _T("invalid index in wxComboBox::Select") );
|
||||
wxCHECK_RET( (n >= 0) && (n < GetCount()) && (GetCount() > 0), _T("invalid index in wxComboBox::Select ") );
|
||||
|
||||
GetLBox()->SetSelection(n);
|
||||
GetText()->SetValue(GetLBox()->GetString(n));
|
||||
|
Reference in New Issue
Block a user