mirror of https://github.com/GNOME/gimp.git
widgets: initialize TextTag's alpha channel when deserializing markup
Code location and fix found by Massimo Valentini. Fixes: #6927 (GNOME/Gimp tracker)
This commit is contained in:
parent
6947e80b0b
commit
9ab7547607
|
@ -1399,6 +1399,7 @@ gimp_text_buffer_name_to_tag (GimpTextBuffer *buffer,
|
|||
|
||||
sscanf (value, "#%02x%02x%02x", &r, &g, &b);
|
||||
|
||||
gimp_rgb_set_alpha (&color, 1.0);
|
||||
gimp_rgb_set_uchar (&color, r, g, b);
|
||||
|
||||
return gimp_text_buffer_get_color_tag (buffer, &color);
|
||||
|
|
Loading…
Reference in New Issue