app: fix gimp_gegl_color_new() to treat the passed GimpRGB as gamma corrected

This commit is contained in:
Michael Natterer 2012-04-02 18:43:05 +02:00
parent 6efd812d08
commit 72894671d5
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ gimp_gegl_color_new (const GimpRGB *rgb)
g_return_val_if_fail (rgb != NULL, NULL);
color = gegl_color_new (NULL);
gegl_color_set_rgba (color, rgb->r, rgb->g, rgb->b, rgb->a);
gegl_color_set_pixel (color, babl_format ("R'G'B'A double"), rgb);
return color;
}