X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de160b06478f7b007a28bd84f60fc59c0683ee09..f49fd6d0cd050ccc55e1bcbb831e078eaac10feb:/src/mac/carbon/combobox.cpp?ds=sidebyside 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