[gimp] pdb: actually create a free curve in the gimp_curves_explicit() wrapper



commit fabcf2ccfe113c8790fa110bd46fc62adfb471f4
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jun 17 20:23:02 2014 +0200

    pdb: actually create a free curve in the gimp_curves_explicit() wrapper
    
    It was creating a spline curve that was entirely broken.

 app/pdb/color-cmds.c       |    6 +++---
 tools/pdbgen/pdb/color.pdb |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/app/pdb/color-cmds.c b/app/pdb/color-cmds.c
index a0ed290..a91d3c3 100644
--- a/app/pdb/color-cmds.c
+++ b/app/pdb/color-cmds.c
@@ -472,9 +472,9 @@ curves_explicit_invoker (GimpProcedure         *procedure,
           (! gimp_drawable_is_gray (drawable) ||
            channel == GIMP_HISTOGRAM_VALUE || channel == GIMP_HISTOGRAM_ALPHA))
         {
-          GObject *config = gimp_curves_config_new_spline (channel,
-                                                           curve,
-                                                           num_bytes);
+          GObject *config = gimp_curves_config_new_explicit (channel,
+                                                             curve,
+                                                             num_bytes);
 
           gimp_drawable_apply_operation_by_name (drawable, progress,
                                                  C_("undo-type", "Curves"),
diff --git a/tools/pdbgen/pdb/color.pdb b/tools/pdbgen/pdb/color.pdb
index 057075a..2840ca0 100644
--- a/tools/pdbgen/pdb/color.pdb
+++ b/tools/pdbgen/pdb/color.pdb
@@ -421,9 +421,9 @@ HELP
       (! gimp_drawable_is_gray (drawable) ||
        channel == GIMP_HISTOGRAM_VALUE || channel == GIMP_HISTOGRAM_ALPHA))
     {
-      GObject *config = gimp_curves_config_new_spline (channel,
-                                                       curve,
-                                                       num_bytes);
+      GObject *config = gimp_curves_config_new_explicit (channel,
+                                                         curve,
+                                                         num_bytes);
 
       gimp_drawable_apply_operation_by_name (drawable, progress,
                                              C_("undo-type", "Curves"),


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