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.
This commit is contained in:
Michael Natterer 2015-09-07 21:43:18 +02:00
parent f7a90f9a63
commit 997314d4e9
1 changed files with 1 additions and 1 deletions

View File

@ -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);