[gnumeric] xlsx: unconditionally export series' style.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xlsx: unconditionally export series' style.
- Date: Mon, 6 Apr 2015 23:50:10 +0000 (UTC)
commit 063947ab7c9f0aedcdb501fe3900efd571d780fe
Author: Morten Welinder <terra gnome org>
Date: Mon Apr 6 19:49:45 2015 -0400
xlsx: unconditionally export series' style.
NEWS | 1 +
plugins/excel/ChangeLog | 5 +++++
plugins/excel/xlsx-write-drawing.c | 17 ++++++++---------
3 files changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/NEWS b/NEWS
index 2a97bd0..7abb7cc 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ Morten:
* xlsx export of multiple plots in chart.
* Fix xlsx import of multiple axes.
* Fix xlsx title export problem.
+ * Fix xlsx export problem with series' style.
* Improve test suite.
* Actually implement DECIMAL.
* Fix BETA problem with special case.
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index be35e2c..9f123a0 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-06 Morten Welinder <terra gnome org>
+
+ * xlsx-write-drawing.c (xlsx_write_one_plot): Always write series'
+ style.
+
2015-04-05 Morten Welinder <terra gnome org>
* xlsx-read-drawing.c (xlsx_chart_add_plot): Add backplane here.
diff --git a/plugins/excel/xlsx-write-drawing.c b/plugins/excel/xlsx-write-drawing.c
index ab8f3ef..553dae9 100644
--- a/plugins/excel/xlsx-write-drawing.c
+++ b/plugins/excel/xlsx-write-drawing.c
@@ -960,6 +960,7 @@ xlsx_write_one_plot (XLSXWriteState *state, GsfXMLOut *xml,
GogSeries *ser = series->data;
GSList *l, *children;
GOStyle *style = go_styled_object_get_style (GO_STYLED_OBJECT (ser));
+ XLSXStyleContext sctx;
int count = (*ser_count)++;
gsf_xml_out_start_element (xml, "c:ser");
@@ -967,14 +968,12 @@ xlsx_write_one_plot (XLSXWriteState *state, GsfXMLOut *xml,
xlsx_write_chart_int (xml, "c:idx", count);
xlsx_write_chart_int (xml, "c:order", count);
xlsx_write_series_dim (state, xml, ser, "c:tx", GOG_MS_DIM_LABELS);
- if (!vary_by_element) {
- /* FIXME: we might loose some style elements */
- XLSXStyleContext sctx;
- xlsx_style_context_init (&sctx, state);
- sctx.def_has_markers = has_markers;
- sctx.def_has_lines = has_lines;
- xlsx_write_go_style_full (xml, style, &sctx);
- }
+
+ xlsx_style_context_init (&sctx, state);
+ sctx.def_has_markers = has_markers;
+ sctx.def_has_lines = has_lines;
+ xlsx_write_go_style_full (xml, style, &sctx);
+
if (set_invert)
xlsx_write_chart_uint (xml, "c:invertIfNegative", 0);
if (explosion > 0.)
@@ -1594,7 +1593,7 @@ xlsx_preprocess_radio (XLSXWriteState *state, GSList *objects)
GnmValue const *v = sheet_widget_radio_button_get_value (so);
if (!v || !VALUE_IS_FLOAT (v) || value_get_as_float (v) != i) {
char *etxt = gnm_expr_top_as_string (hkey, &pp0, state->sheet->convs);
- g_printerr ("One or more radio buttons linked to %s has non-sequential
values, first one %s\n",
+ g_printerr ("One or more radio buttons linked to %s has non-sequential
values, first one [%s]\n",
etxt, value_peek_string (v));
g_free (etxt);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]