mirror of https://github.com/GNOME/gimp.git
Fix Bug 631742 - Can't change color of first letter
Fix the bug by making sure we set the base color before setting the markup which contains color for specific regions. This is a temporary fix, it solves Bug 631742 and introduces a less critical bug (which is described as part of Bug 631934) that will be solved with upcoming design changes.
This commit is contained in:
parent
c79deb40dd
commit
8cf6695a50
|
@ -144,6 +144,8 @@ gimp_text_layout_new (GimpText *text,
|
|||
pango_layout_set_font_description (layout->layout, font_desc);
|
||||
pango_font_description_free (font_desc);
|
||||
|
||||
gimp_text_layout_set_attrs (layout);
|
||||
|
||||
if (text->markup)
|
||||
pango_layout_set_markup (layout->layout, text->markup, -1);
|
||||
else if (text->text)
|
||||
|
@ -191,7 +193,6 @@ gimp_text_layout_new (GimpText *text,
|
|||
text->unit,
|
||||
yres));
|
||||
|
||||
gimp_text_layout_set_attrs (layout);
|
||||
gimp_text_layout_position (layout);
|
||||
|
||||
switch (text->box_mode)
|
||||
|
|
Loading…
Reference in New Issue