mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
f14ace2116
commit
9530b5cea3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue