From 4af4b5253176b7a14d961cf6ee8872a7694475bd Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 11 Dec 2007 00:52:43 +0000 Subject: [PATCH] Don't prematurely return from Create before appending the choices, and etc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/choice.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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,