X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/797f8d96412dcc04c3ff47bb938217d6f28c5e7e..a201463482dc4417592ee014ff1a9706e8971dd6:/src/mac/carbon/combobox.cpp diff --git a/src/mac/carbon/combobox.cpp b/src/mac/carbon/combobox.cpp index 6a155d9636..eaf09763e2 100644 --- a/src/mac/carbon/combobox.cpp +++ b/src/mac/carbon/combobox.cpp @@ -334,7 +334,7 @@ void wxComboBox::DelegateChoice( const wxString& value ) void wxComboBox::Init() { - m_container.SetContainerWindow(this); + WX_INIT_CONTROL_CONTAINER(); } bool wxComboBox::Create(wxWindow *parent, @@ -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