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:
Stanislav Grinkov 2023-08-13 13:40:17 +06:00
parent 6947e80b0b
commit 9ab7547607
No known key found for this signature in database
GPG Key ID: F9FF16FBCBF58578
1 changed files with 1 additions and 0 deletions

View File

@ -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);