summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-02-15 18:16:00 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-02-15 18:16:00 +0000
commit5ff54a7f3c8573077c7b0ecaaf8a77b26b16a308 (patch)
treefeacf537aa6cd49202b02a7fade0d6270ad60e7c /src
parentfix logic of sp_desktop_query_style_all so that copy/pasting style could work... (diff)
downloadinkscape-5ff54a7f3c8573077c7b0ecaaf8a77b26b16a308.tar.gz
inkscape-5ff54a7f3c8573077c7b0ecaaf8a77b26b16a308.zip
remove old and apparently unused hack that was causing bug 192060
(bzr r4735)
Diffstat (limited to 'src')
-rw-r--r--src/widgets/sp-color-scales.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/widgets/sp-color-scales.cpp b/src/widgets/sp-color-scales.cpp
index d5ff8609c..2cc4915b8 100644
--- a/src/widgets/sp-color-scales.cpp
+++ b/src/widgets/sp-color-scales.cpp
@@ -285,7 +285,6 @@ void ColorScales::_colorChanged()
break;
case SP_COLOR_SCALES_MODE_HSV:
sp_color_get_rgb_floatv( &_color, tmp );
- c[0] = getScaled( _a[0] );
sp_color_rgb_to_hsl_floatv (c, tmp[0], tmp[1], tmp[2]);
c[3] = _alpha;
c[4] = 0.0;
@@ -532,12 +531,6 @@ guint ColorScales::getSubmode() const
void ColorScales::_adjustmentAnyChanged( GtkAdjustment *adjustment, SPColorScales *cs )
{
-// TODO check this. It looks questionable:
- // if a value is entered between 0 and 1 exclusive, normalize it to (int) 0..255 or 0..100
- if (adjustment->value > 0.0 && adjustment->value < 1.0) {
- gtk_adjustment_set_value( adjustment, floor ((adjustment->value) * adjustment->upper + 0.5) );
- }
-
gint channel = GPOINTER_TO_INT (gtk_object_get_data (GTK_OBJECT (adjustment), "channel"));
_adjustmentChanged(cs, channel);