]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/choice.cpp
different CoreText font caches for Robin's tests
[wxWidgets.git] / src / mac / carbon / choice.cpp
index e5f7c54da458b413af1a69151b92493b12ec3c37..0e9fdcba58aed03a866d4b8bfabc5e6e5e897d95 100644 (file)
@@ -50,14 +50,17 @@ bool wxChoice::Create(wxWindow *parent,
     const wxValidator& validator,
     const wxString& name )
 {
-    return Create(
-        parent, id, pos, size, 0, NULL,
-        style, validator, name );
+    if ( !Create( parent, id, pos, size, 0, NULL, style, validator, name ) )
+        return false;
 
     Append( choices );
 
     if ( !choices.empty() )
         SetSelection( 0 );
+
+    SetInitialSize( size );
+
+    return true;
 }
 
 bool wxChoice::Create(wxWindow *parent,