X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3fb7939695d0e2dae71188fcce4eeeb2b68c81da..64869ab787854e69b35893728fadd06ec69165e9:/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