core: Fix Equalize TRC compared to 2.10

In GIMP 2.10, gimp_histogram_new () takes a boolean
parameter to indicate if it should be rendered in a linear
or non-linear TRC. In GIMP 3.0, this function instead takes
a GimpTRCType where 0 is equal to the linear enum and 1
is equal to the non-linear enum.

Since gimp_drawable_equalize () still passes FALSE as it
did in 2.10, this is treated as 0 and thus setting it as a linear
operation.

This patch changes the FALSE to be GIMP_TRC_NON_LINEAR,
both for clarify and to better match the 2.10 behavior.
This commit is contained in:
Alx Sa 2026-01-28 16:05:46 +00:00 committed by Jehan
parent 2af5aa651a
commit 6949400a03

View file

@ -48,7 +48,7 @@ gimp_drawable_equalize (GimpDrawable *drawable,
image = gimp_item_get_image (GIMP_ITEM (drawable));
selection = gimp_image_get_mask (image);
histogram = gimp_histogram_new (FALSE);
histogram = gimp_histogram_new (GIMP_TRC_NON_LINEAR);
gimp_drawable_calculate_histogram (drawable, histogram, FALSE);
equalize = gegl_node_new_child (NULL,