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

It was creating a spline curve that was entirely broken.
This commit is contained in:
Michael Natterer 2014-06-17 20:23:02 +02:00
parent 2124ddebe6
commit fabcf2ccfe
2 changed files with 6 additions and 6 deletions

View File

@ -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"),

View File

@ -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"),