From 6949400a03398118078b8523900d0ef8ca800311 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Wed, 28 Jan 2026 16:05:46 +0000 Subject: [PATCH] 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. --- app/core/gimpdrawable-equalize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/gimpdrawable-equalize.c b/app/core/gimpdrawable-equalize.c index 202dc7f881..18eeb053f6 100644 --- a/app/core/gimpdrawable-equalize.c +++ b/app/core/gimpdrawable-equalize.c @@ -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,