[gnumeric] xlsx: be case consistent in hex colours.



commit 46770362003e711cbfe98bf5279bded94d698885
Author: Morten Welinder <terra gnome org>
Date:   Thu Jun 5 15:28:58 2014 -0400

    xlsx: be case consistent in hex colours.

 plugins/excel/xlsx-write.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/xlsx-write.c b/plugins/excel/xlsx-write.c
index 8be5edc..b2e28a5 100644
--- a/plugins/excel/xlsx-write.c
+++ b/plugins/excel/xlsx-write.c
@@ -316,7 +316,7 @@ xlsx_write_rich_text (GsfXMLOut *xml, char const *text, PangoAttrList *attrs)
                attr = pango_attr_iterator_get (iter, PANGO_ATTR_FOREGROUND);
                if (attr) {
                        PangoColor *color = &((PangoAttrColor *) attr)->color;
-                       char *buf = g_strdup_printf("FF%02x%02x%02x", color->red >> 8, color->green >> 8, 
color->blue >> 8);
+                       char *buf = g_strdup_printf("ff%02x%02x%02x", color->red >> 8, color->green >> 8, 
color->blue >> 8);
                        gsf_xml_out_start_element (xml, "color");
                        gsf_xml_out_add_cstr_unchecked (xml, "rgb", buf);
                        gsf_xml_out_end_element (xml); /* </color> */


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