[gimp/gimp-2-6] Bug 613838 - Error in gimp-hue-saturation PDB call



commit d75e1a94889edfed82a9b4058ede407522ecdc77
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.
    (cherry picked from commit 2813fce0b8fffee97fff038760aa7a66b1d9d9ec)

 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 63e536b..df7d421 100644
--- a/app/core/gimpdrawable-hue-saturation.c
+++ b/app/core/gimpdrawable-hue-saturation.c
@@ -59,7 +59,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]