[gnumeric] xlsx: fix export of bar/col direction.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xlsx: fix export of bar/col direction.
- Date: Sat, 17 Jan 2015 02:23:41 +0000 (UTC)
commit cba73834e09dde6de8146b88433f6e836d31fa22
Author: Morten Welinder <terra gnome org>
Date: Fri Jan 16 21:23:03 2015 -0500
xlsx: fix export of bar/col direction.
NEWS | 2 +-
plugins/excel/xlsx-write-drawing.c | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/NEWS b/NEWS
index 1cf81f6..8ccc339 100644
--- a/NEWS
+++ b/NEWS
@@ -26,7 +26,7 @@ Morten:
* Fix sheet-filter problem with errors. [#742601]
* Improve error handling for .gnumeric a bit.
* Improve xlsx graph import: line colour.
- * Improve xlsx graph export: line style.
+ * Improve xlsx graph export: line style; bar/col direction.
Thomas Kluyver:
* Fix import of extended floats from wk4 files. [#739679]
diff --git a/plugins/excel/xlsx-write-drawing.c b/plugins/excel/xlsx-write-drawing.c
index 5a5d71b..d95ece6 100644
--- a/plugins/excel/xlsx-write-drawing.c
+++ b/plugins/excel/xlsx-write-drawing.c
@@ -233,8 +233,11 @@ xlsx_write_one_plot (XLSXWriteState *state, GsfXMLOut *xml, GogObject const *cha
axis_type[1] = GOG_AXIS_X;
}
gsf_xml_out_start_element (xml, "c:barChart");
- gsf_xml_out_simple_element (xml, "c:barDir",
- horizontal ? "bar" : "col");
+
+ gsf_xml_out_start_element (xml, "c:barDir");
+ gsf_xml_out_add_cstr_unchecked (xml, "val", horizontal ? "bar" : "col");
+ gsf_xml_out_end_element (xml);
+
xlsx_write_plot_1_5_type (xml, plot, TRUE);
gsf_xml_out_start_element (xml, "c:overlap");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]