[gnumeric] xlsx: fix reading certain char font colours.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xlsx: fix reading certain char font colours.
- Date: Tue, 3 Feb 2015 18:23:51 +0000 (UTC)
commit 5875530cac0ef26c2384c6090cbd666beae73d6f
Author: Morten Welinder <terra gnome org>
Date: Tue Feb 3 13:21:01 2015 -0500
xlsx: fix reading certain char font colours.
plugins/excel/ChangeLog | 4 ++++
plugins/excel/xlsx-read-drawing.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 223abf2..b48b343 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-03 Morten Welinder <terra gnome org>
+
+ * xlsx-read-drawing.c (xlsx_tx_pr): Set the right auto_color flag.
+
2015-02-02 Morten Welinder <terra gnome org>
* xlsx-read-drawing.c (xlsx_chart_push_obj): Optionally check for leaks.
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index f2250ca..6a86363 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -112,7 +112,7 @@ xlsx_tx_pr (GsfXMLIn *xin, G_GNUC_UNUSED xmlChar const **attrs)
XLSXReadState *state = (XLSXReadState *)xin->user_state;
if (GO_IS_STYLED_OBJECT (state->cur_obj) && state->cur_style) {
state->gocolor = &state->cur_style->font.color;
- state->auto_color = NULL;
+ state->auto_color = &state->cur_style->font.auto_color;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]