X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..a76342da418c75ead546ce2025db24dad261d237:/src/generic/spinctlg.cpp diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index 24152c771d..148dd99b20 100644 --- a/src/generic/spinctlg.cpp +++ b/src/generic/spinctlg.cpp @@ -60,7 +60,7 @@ public: : wxTextCtrl(spin->GetParent(), wxID_ANY, value) { m_spin = spin; - + // remove the default minsize, the spinctrl will have one instead SetSizeHints(wxDefaultSize.x,wxDefaultSize.y); } @@ -184,11 +184,11 @@ bool wxSpinCtrl::Create(wxWindow *parent, m_text = new wxSpinCtrlText(this, value); m_btn = new wxSpinCtrlButton(this, style); - + m_btn->SetRange(min, max); m_btn->SetValue(initial); SetBestSize(size); - + // have to disable this window to avoid interfering it with message // processing to the text and the button... but pretend it is enabled to // make IsEnabled() return true