mirror of https://github.com/GNOME/gimp.git
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:
parent
2124ddebe6
commit
fabcf2ccfe
|
@ -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"),
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue