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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user