From: rwst Date: Sat, 28 Jan 2006 16:18:35 +0000 (+0000) Subject: snap sensitivity slider no longer changes start value, ends with 50, X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5d313a099f6a33d63540bfd6b5f352dc9bbf2bc9;p=inkscape.git snap sensitivity slider no longer changes start value, ends with 50, fixes #1395701 --- 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(); }