X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1673e527f08395de6864b09540162ca409a3c28..99c13b276ae030a6e42097af517ad36ac7cbb648:/src/mac/carbon/choice.cpp diff --git a/src/mac/carbon/choice.cpp b/src/mac/carbon/choice.cpp index e5f7c54da4..0e9fdcba58 100644 --- a/src/mac/carbon/choice.cpp +++ b/src/mac/carbon/choice.cpp @@ -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,