From 2813fce0b8fffee97fff038760aa7a66b1d9d9ec Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sun, 27 Jun 2010 01:15:46 +0200 Subject: [PATCH] Bug 613838 - Error in gimp-hue-saturation PDB call The "hue" parameter from the PDB is in a [-180..180] range, not in [-100..100]. Note that unlike stated in the bug, this is not an incompatible change, because it simply got broken between 2.4 and 2.6. --- app/core/gimpdrawable-hue-saturation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/gimpdrawable-hue-saturation.c b/app/core/gimpdrawable-hue-saturation.c index 48269d4242..a2159b11f1 100644 --- a/app/core/gimpdrawable-hue-saturation.c +++ b/app/core/gimpdrawable-hue-saturation.c @@ -58,7 +58,7 @@ gimp_drawable_hue_saturation (GimpDrawable *drawable, NULL); g_object_set (config, - "hue", hue / 100.0, + "hue", hue / 180.0, "saturation", saturation / 100.0, "lightness", lightness / 100.0, NULL);