mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
Issue #10813: forgotten GimpRGB used on a GeglColor property.
This commit is contained in:
parent
a7637bfb4a
commit
57113323e2
1 changed files with 1 additions and 3 deletions
|
@ -61,7 +61,6 @@ text_render (GimpImage *image,
|
|||
GimpText *gtext;
|
||||
GimpLayer *layer;
|
||||
GeglColor *color;
|
||||
GimpRGB rgb;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
|
||||
g_return_val_if_fail (drawable == NULL || GIMP_IS_DRAWABLE (drawable), NULL);
|
||||
|
@ -78,7 +77,6 @@ text_render (GimpImage *image,
|
|||
border = 0;
|
||||
|
||||
color = gimp_context_get_foreground (context);
|
||||
gegl_color_get_pixel (color, babl_format ("R'G'B'A double"), &rgb);
|
||||
|
||||
gtext = g_object_new (GIMP_TYPE_TEXT,
|
||||
"text", text,
|
||||
|
@ -86,7 +84,7 @@ text_render (GimpImage *image,
|
|||
"font-size", font_size,
|
||||
"antialias", antialias,
|
||||
"border", border,
|
||||
"color", &rgb,
|
||||
"color", color,
|
||||
NULL);
|
||||
|
||||
layer = gimp_text_layer_new (image, gtext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue