[gnumeric] xlsx: improve font graph font export.



commit 387ad8705d80e3bfb65310d25ec520dea688d078
Author: Morten Welinder <terra gnome org>
Date:   Tue Feb 17 11:04:42 2015 -0500

    xlsx: improve font graph font export.

 plugins/excel/ChangeLog            |    5 +++++
 plugins/excel/xlsx-write-drawing.c |   14 +-------------
 2 files changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 7a4bf60..64564ef 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-17  Morten Welinder  <terra gnome org>
+
+       * xlsx-write-drawing.c (xlsx_go_style_has_font): Simplify now that
+       we have a sane auto_font.
+
 2015-02-16  Morten Welinder  <terra gnome org>
 
        * ms-chart.c (chart_write_axis): Only output font record when it's
diff --git a/plugins/excel/xlsx-write-drawing.c b/plugins/excel/xlsx-write-drawing.c
index bd0ea02..ece36b7 100644
--- a/plugins/excel/xlsx-write-drawing.c
+++ b/plugins/excel/xlsx-write-drawing.c
@@ -135,22 +135,10 @@ xlsx_write_rgbarea (GsfXMLOut *xml, GOColor color)
 static gboolean
 xlsx_go_style_has_font (GOStyle *style)
 {
-       GOFont const *def;
-       gboolean is_def;
-
        if (!(style->interesting_fields & GO_STYLE_FONT))
                return FALSE;
 
-       /* We need to fix auto_font! */
-
-       def = go_font_new_by_index (0);
-       is_def = (style->font.font == def);
-       go_font_unref (def);
-
-       if (is_def)
-               return FALSE;
-
-       return TRUE /* !style->font.auto_font */;
+       return !style->font.auto_font;
 }
 
 static void


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