mirror of https://github.com/GNOME/gimp.git
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:
parent
f7a90f9a63
commit
997314d4e9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue