Commit e9736bd5 authored by Michael Banck's avatar Michael Banck

* debian/patches/34_geometry_tab_sliders.dpatch: New patch, fixes the sliders

    in the geometry tab; LP: #1178239.
parent 0a603e00
qutemol (0.4.1~cvs20081111-3) UNRELEASED; urgency=low
* debian/upstream: New file.
* debian/patches/34_geometry_tab_sliders.dpatch: New patch, fixes the sliders
in the geometry tab; LP: #1178239.
-- Michael Banck <mbanck@debian.org> Tue, 01 Nov 2011 17:59:18 +0100
......
......@@ -31,3 +31,4 @@
31_reset_local_for_shaders.dpatch
32_stdio_includes.dpatch
33_format-security.dpatch
34_geometry_tab_sliders.dpatch
#! /bin/sh /usr/share/dpatch/dpatch-run
## 34_geometry_tab_sliders.dpatch by Michael Banck <mbanck@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix broken sliders in geometry tab
@DPATCH@
--- ./src/MyTab.cpp.orig 2013-10-06 16:57:34.878875265 +0200
+++ ./src/MyTab.cpp 2013-10-06 16:56:23.506510069 +0200
@@ -722,6 +722,9 @@
wxSlider* tmpSlider;
wxCheckBox* tmpChk;
wxStaticText* tmpStaticText;
+
+static int SLIDERSIZE=80;
+
wxSizer *newLabelledSlider( wxWindow* parent, wxWindowID idSlider,
const wxString& labelString,
int pos ,
@@ -730,15 +733,12 @@
//
wxSizer *res = new wxBoxSizer(wxHORIZONTAL);
label=new wxStaticText(parent, wxID_ANY, labelString);
- slider=new wxSlider(parent,idSlider, pos, 0, 100, wxDefaultPosition, wxDefaultSize/*, wxNO_FULL_REPAINT_ON_RESIZE */ );
+ slider=new wxSlider(parent,idSlider, pos, 0, 100, wxDefaultPosition, wxSize(SLIDERSIZE,wxDefaultSize.y), wxNO_FULL_REPAINT_ON_RESIZE );
res->Add(label, 0);
res->Add(slider, 1, wxEXPAND);
return res;
}
-
-static int SLIDERSIZE=80;
-
wxSizer *newAutoSlider( wxWindow* parent, wxWindowID idSlider,
const wxString& labelString,
float *pos ,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment