X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e8dba5e29eba7ac5e53fa4035e65ceeaeed3884..659863d8a73d02626f4060bb1099fe7bfd80d22a:/src/msw/spinbutt.cpp?ds=sidebyside diff --git a/src/msw/spinbutt.cpp b/src/msw/spinbutt.cpp index b4b9cfb1e7..4b3f25570c 100644 --- a/src/msw/spinbutt.cpp +++ b/src/msw/spinbutt.cpp @@ -195,7 +195,7 @@ bool wxSpinButton::Create(wxWindow *parent, SubclassWin(m_hWnd); - SetBestSize(size); + SetInitialSize(size); return true; } @@ -257,7 +257,7 @@ void wxSpinButton::SetValue(int val) } void wxSpinButton::NormalizeValue() -{ +{ SetValue( GetValue() ); }