summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/widget/color-wheel-selector.cpp2
-rw-r--r--src/ui/widget/gimpcolorwheel.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/widget/color-wheel-selector.cpp b/src/ui/widget/color-wheel-selector.cpp
index cac812640..22c616325 100644
--- a/src/ui/widget/color-wheel-selector.cpp
+++ b/src/ui/widget/color-wheel-selector.cpp
@@ -245,10 +245,10 @@ void ColorWheelSelector::_wheelChanged(GimpColorWheel *wheel, ColorWheelSelector
guint32 mid = color.toRGBA32(0x7f);
guint32 end = color.toRGBA32(0xff);
+ wheelSelector->_updating = true;
wheelSelector->_slider->setColors(start, mid, end);
wheelSelector->_color.preserveICC();
- wheelSelector->_updating = true;
wheelSelector->_color.setHeld(gimp_color_wheel_is_adjusting(wheel));
wheelSelector->_color.setColor(color);
wheelSelector->_updating = false;
diff --git a/src/ui/widget/gimpcolorwheel.c b/src/ui/widget/gimpcolorwheel.c
index f632331d8..c857cfa8a 100644
--- a/src/ui/widget/gimpcolorwheel.c
+++ b/src/ui/widget/gimpcolorwheel.c
@@ -1412,6 +1412,10 @@ gimp_color_wheel_set_color (GimpColorWheel *wheel,
priv = wheel->priv;
+ if(h == 0.0 && s == 0.0) {
+ h = priv->h;
+ }
+
priv->h = h;
priv->s = s;
priv->v = v;