From 50415ad7eebd3399fc06417a8eb427324978a13a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 20 Apr 2007 01:16:16 +0000 Subject: [PATCH] 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 --- src/html/helpwnd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.45.2