From: Václav Slavík Date: Thu, 14 Feb 2002 20:29:10 +0000 (+0000) Subject: create wxSpinCtrl with default pos+size first, so that the subsequent call to DoSetSi... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/094ca819f90f8a81b1ec8d0611295433d8192066 create wxSpinCtrl with default pos+size first, so that the subsequent call to DoSetSize is not a no-op git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index f5019af63a..b8c1f48b40 100644 --- a/src/generic/spinctlg.cpp +++ b/src/generic/spinctlg.cpp @@ -160,7 +160,7 @@ bool wxSpinCtrl::Create(wxWindow *parent, int initial, const wxString& name) { - if ( !wxControl::Create(parent, id, pos, size, style, + if ( !wxControl::Create(parent, id, wxDefaultPosition, wxDefaultSize, style, wxDefaultValidator, name) ) { return FALSE;