X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/937013e0fd914d4c42f9f5ec98da665986b93dfa..8691bf118c80d22b0e6908a0877b46cedde7a3eb:/src/mac/carbon/combobox.cpp diff --git a/src/mac/carbon/combobox.cpp b/src/mac/carbon/combobox.cpp index 4db3c45a02..90ba52c9c8 100644 --- a/src/mac/carbon/combobox.cpp +++ b/src/mac/carbon/combobox.cpp @@ -366,7 +366,6 @@ bool wxComboBox::Create(wxWindow *parent, return false; } - m_choice = new wxComboBoxChoice(this, style ); wxSize csize = size; if ( style & wxCB_READONLY ) { @@ -381,6 +380,7 @@ bool wxComboBox::Create(wxWindow *parent, csize.y += 2 * TEXTFOCUSBORDER ; } } + m_choice = new wxComboBoxChoice(this, style ); DoSetSize(pos.x, pos.y, csize.x, csize.y);