From 5d313a099f6a33d63540bfd6b5f352dc9bbf2bc9 Mon Sep 17 00:00:00 2001 From: rwst Date: Sat, 28 Jan 2006 16:18:35 +0000 Subject: [PATCH] snap sensitivity slider no longer changes start value, ends with 50, fixes #1395701 --- src/ui/widget/tolerance-slider.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/ui/widget/tolerance-slider.cpp b/src/ui/widget/tolerance-slider.cpp index 12127d06c..170d2e162 100644 --- a/src/ui/widget/tolerance-slider.cpp +++ b/src/ui/widget/tolerance-slider.cpp @@ -76,20 +76,21 @@ ToleranceSlider::init (const Glib::ustring& label1, const Glib::ustring& tip, co void ToleranceSlider::setValue (double val, bool is_absolute) { +fprintf(stderr,"val=%f, isabs=%d\n",val,is_absolute?1:0); _hscale->set_value (val); Gtk::Adjustment *adj = _hscale->get_adjustment(); if (is_absolute) - { - adj->set_lower (0.4); - adj->set_upper (50.1); - adj->set_step_increment (0.1); - } - else { adj->set_lower (1.0); adj->set_upper (51.0); adj->set_step_increment (1.0); } + else + { + adj->set_lower (0.4); + adj->set_upper (50.1); + adj->set_step_increment (0.1); + } update(); } -- 2.30.2