[gimp] Bug 754518 - gimp-drawable-curves-spline does not take the advertised...



commit 997314d4e92e7d4e67cf644c2e60c02ce891f81f
Author: Michael Natterer <mitch gimp org>
Date:   Mon Sep 7 21:43:18 2015 +0200

    Bug 754518 - gimp-drawable-curves-spline does not take the advertised...
    
    ...number of points
    
    gimp_curves_config_new_spline(): set the GimpCurve's n_points, not
    n_samples. The bug title describes exactly what was happening.

 app/operations/gimpcurvesconfig.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/operations/gimpcurvesconfig.c b/app/operations/gimpcurvesconfig.c
index e41009a..d1720b3 100644
--- a/app/operations/gimpcurvesconfig.c
+++ b/app/operations/gimpcurvesconfig.c
@@ -379,7 +379,7 @@ gimp_curves_config_new_spline (gint32         channel,
   gimp_data_freeze (GIMP_DATA (curve));
 
   gimp_curve_set_curve_type (curve, GIMP_CURVE_SMOOTH);
-  gimp_curve_set_n_samples (curve, n_points);
+  gimp_curve_set_n_points (curve, n_points);
 
   /*  unset the last point  */
   gimp_curve_set_point (curve, curve->n_points - 1, -1.0, -1.0);


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