[gnumeric] xlsx: properly read line colors.



commit ea52878109369914fc7ca55b85c8263363692b5e
Author: Morten Welinder <terra gnome org>
Date:   Fri Jan 16 19:57:55 2015 -0500

    xlsx: properly read line colors.

 NEWS                              |    1 +
 plugins/excel/ChangeLog           |    6 ++++++
 plugins/excel/xlsx-read-drawing.c |    1 +
 3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 8d5b75d..234dd19 100644
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,7 @@ Morten:
        * Fix ADDRESS problem.
        * Fix sheet-filter problem with errors.  [#742601]
        * Improve error handling for .gnumeric a bit.
+       * Improve xlsx graph import.
 
 Thomas Kluyver:
        * Fix import of extended floats from wk4 files.  [#739679]
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index d7bf419..ca9b17b 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,9 @@
+2015-01-16  Morten Welinder  <terra gnome org>
+
+       * xlsx-read-drawing.c (xlsx_style_line_start): Also point to the
+       right auto_color location so we don't end up ignoring the colors
+       we read.
+
 2014-12-16  Morten Welinder  <terra gnome org>
 
        * xlsx-write-docprops.c (xlsx_meta_write_props_custom_type):
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index 1ea9812..145f3ad 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -1240,6 +1240,7 @@ xlsx_style_line_start (GsfXMLIn *xin, xmlChar const **attrs)
                state->cur_style = (GOStyle *) gog_style_new ();
        state->cur_style->line.width = w / 12700.;
        state->gocolor = &state->cur_style->line.color;
+       state->auto_color = &state->cur_style->line.auto_color;
 }
 
 static void


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