don't assert in SetSelection(wxNOT_FOUND), just clear text zone contents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -390,7 +390,11 @@ void wxComboBox::SetSelection(int n)
|
||||
|
||||
GetLBox()->SetSelection(n);
|
||||
|
||||
SetText(GetLBox()->GetString(n));
|
||||
wxString str;
|
||||
if ( n != wxNOT_FOUND )
|
||||
str = GetLBox()->GetString(n);
|
||||
|
||||
SetText(str);
|
||||
}
|
||||
|
||||
int wxComboBox::GetSelection() const
|
||||
|
||||
Reference in New Issue
Block a user