[gimp] Fix Bug 631742 - Can't change color of first letter



commit 8cf6695a5058ed9aeedf3ab0c40f3c36aeae7df3
Author: Barak Itkin <lightningismyname gmail com>
Date:   Tue Oct 12 02:13:28 2010 +0200

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/text/gimptextlayout.c b/app/text/gimptextlayout.c
index 7ceab87..ad30ee9 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]