Debian Codegraph @

debian/patches/34_geometry_tab_sliders.patch

raw symbols SCIP
1 From: Michael Banck <[email protected]>
2 Subject: Fix broken sliders in geometry tab
3
4 --- a/src/MyTab.cpp
5 +++ b/src/MyTab.cpp
6 @@ -722,6 +722,9 @@
7 wxSlider* tmpSlider;
8 wxCheckBox* tmpChk;
9 wxStaticText* tmpStaticText;
10 +
11 +static int SLIDERSIZE=80;
12 +
13 wxSizer *newLabelledSlider( wxWindow* parent, wxWindowID idSlider,
14 const wxString& labelString,
15 int pos ,
16 @@ -730,15 +733,12 @@
17 //
18 wxSizer *res = new wxBoxSizer(wxHORIZONTAL);
19 label=new wxStaticText(parent, wxID_ANY, labelString);
20 - slider=new wxSlider(parent,idSlider, pos, 0, 100, wxDefaultPosition, wxDefaultSize/*, wxNO_FULL_REPAINT_ON_RESIZE */ );
21 + slider=new wxSlider(parent,idSlider, pos, 0, 100, wxDefaultPosition, wxSize(SLIDERSIZE,wxDefaultSize.y), wxNO_FULL_REPAINT_ON_RESIZE );
22 res->Add(label, 0);
23 res->Add(slider, 1, wxEXPAND);
24 return res;
25 }
26
27 -
28 -static int SLIDERSIZE=80;
29 -
30 wxSizer *newAutoSlider( wxWindow* parent, wxWindowID idSlider,
31 const wxString& labelString,
32 float *pos ,