From: Vadim Zeitlin Date: Fri, 20 Apr 2007 01:16:16 +0000 (+0000) Subject: create the spin control with the correct range instead of setting it later which... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/50415ad7eebd3399fc06417a8eb427324978a13a create the spin control with the correct range instead of setting it later which results in unwanted events and a crash (patch 1702847) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/helpwnd.cpp b/src/html/helpwnd.cpp index 9215711601..17a376198b 100644 --- a/src/html/helpwnd.cpp +++ b/src/html/helpwnd.cpp @@ -1199,8 +1199,8 @@ public: wxSize(200, wxDefaultCoord), 0, NULL, wxCB_DROPDOWN | wxCB_READONLY)); - sizer->Add(FontSize = new wxSpinCtrl(this, wxID_ANY)); - FontSize->SetRange(2, 100); + sizer->Add(FontSize = new wxSpinCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, + wxDefaultSize, wxSP_ARROW_KEYS, 2, 100, 2, _T("wxSpinCtrl"))); topsizer->Add(sizer, 0, wxLEFT|wxRIGHT|wxTOP, 10);