X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b69b47ca6e1a595bd357f849d46b10d98444fce..4a32fcf1555f9a52a6970e52ad0191a0ee69dbf9:/src/gtk1/choice.cpp diff --git a/src/gtk1/choice.cpp b/src/gtk1/choice.cpp index e1c2a36b50..9b03f45cfe 100644 --- a/src/gtk1/choice.cpp +++ b/src/gtk1/choice.cpp @@ -12,7 +12,10 @@ #if wxUSE_CHOICE #include "wx/choice.h" -#include "wx/arrstr.h" + +#ifndef WX_PRECOMP + #include "wx/arrstr.h" +#endif #include "wx/gtk1/private.h" @@ -143,7 +146,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id, m_parent->DoAddChild( this ); PostCreation(size); - SetBestSize(size); // need this too because this is a wxControlWithItems + SetInitialSize(size); // need this too because this is a wxControlWithItems return true; }