[gimp/soc-2010-cage] Bug 613838 - Error in gimp-hue-saturation PDB call



commit c456f1f0570d702688afb47f4962557e6d058f3d
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jun 27 01:15:46 2010 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpdrawable-hue-saturation.c b/app/core/gimpdrawable-hue-saturation.c
index 48269d4..a2159b1 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]