]> git.saurik.com Git - wxWidgets.git/commitdiff
porting reordering of controls back from 2.8
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 25 Mar 2008 19:50:38 +0000 (19:50 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 25 Mar 2008 19:50:38 +0000 (19:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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);