Commit 9530b5ce authored by Ell's avatar Ell

Issue #1980 - Color picker wrong results when picking from non-sRGB...

...image using "Sample Average"

Also fix gimp_gegl_average_color(), which is where all current
implementers of GimpPickable actually calculate the average.
parent f14ace21
......@@ -1024,16 +1024,19 @@ gimp_gegl_average_color (GeglBuffer *buffer,
gint n;
} Sum;
const Babl *average_format = babl_format ("RaGaBaA float");
const Babl *average_format;
GeglRectangle roi;
GSList * volatile sums = NULL;
GSList * volatile sums = NULL;
GSList *list;
Sum average = {};
Sum average = {};
gint c;
g_return_if_fail (GEGL_IS_BUFFER (buffer));
g_return_if_fail (color != NULL);
average_format = babl_format_with_space ("RaGaBaA float",
babl_format_get_space (format));
if (! rect)
rect = gegl_buffer_get_extent (buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment