]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/combobox.cpp
applied patch 1908782 wxAuiMDIChildFrame not removed from wxAuiMDIClientWindow
[wxWidgets.git] / src / mac / carbon / combobox.cpp
index 4db3c45a0267e7a6b92184b0b6b516c4a5743052..90ba52c9c8e123e4fa76ddfbc84f3677b28485f9 100644 (file)
@@ -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);