From 8cf6695a5058ed9aeedf3ab0c40f3c36aeae7df3 Mon Sep 17 00:00:00 2001 From: Barak Itkin Date: Tue, 12 Oct 2010 02:13:28 +0200 Subject: [PATCH] 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. --- app/text/gimptextlayout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/text/gimptextlayout.c b/app/text/gimptextlayout.c index 7ceab87b41..ad30ee901c 100644 --- a/app/text/gimptextlayout.c +++ b/app/text/gimptextlayout.c @@ -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)