X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de160b06478f7b007a28bd84f60fc59c0683ee09..a201463482dc4417592ee014ff1a9706e8971dd6:/src/mac/carbon/combobox.cpp diff --git a/src/mac/carbon/combobox.cpp b/src/mac/carbon/combobox.cpp index 734e631e28..eaf09763e2 100644 --- a/src/mac/carbon/combobox.cpp +++ b/src/mac/carbon/combobox.cpp @@ -576,7 +576,7 @@ void wxComboBox::SetSelection(int n) m_choice->SetSelection( n ); if ( m_text != NULL ) - m_text->SetValue(GetString(n)); + m_text->SetValue(n != wxNOT_FOUND ? GetString(n) : wxString(wxEmptyString)); } int wxComboBox::FindString(const wxString& s, bool bCase) const