[gnumeric] xlsx: titles should not be overlays.



commit 24426bebac129ef0d082ef9732a6319c2c265e05
Author: Morten Welinder <terra gnome org>
Date:   Mon Mar 16 12:43:41 2015 -0400

    xlsx: titles should not be overlays.

 NEWS                               |    2 ++
 plugins/excel/xlsx-write-drawing.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index a0c803c..a9a1e7e 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@ Morten:
        * xlsx import/export of log axis.
        * xlsx export of multiple plots in chart.
        * Fix xlsx import of multiple axes.
+       * Fix xlsx title export problem.
+       * Improve test suite.
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.21
diff --git a/plugins/excel/xlsx-write-drawing.c b/plugins/excel/xlsx-write-drawing.c
index 708b628..c876353 100644
--- a/plugins/excel/xlsx-write-drawing.c
+++ b/plugins/excel/xlsx-write-drawing.c
@@ -728,6 +728,7 @@ xlsx_write_axis (XLSXWriteState *state, GsfXMLOut *xml, GogPlot *plot, GogAxis *
                if (text != NULL) {
                        gsf_xml_out_start_element (xml, "c:title");
                        xlsx_write_chart_text (state, xml, text, label);
+                       xlsx_write_chart_uint (xml, "c:overlay", 0);
                        gsf_xml_out_end_element (xml);
                }
        }
@@ -1156,6 +1157,7 @@ xlsx_write_one_chart (XLSXWriteState *state, GsfXMLOut *xml, GogObject const *ch
                if (text != NULL) {
                        gsf_xml_out_start_element (xml, "c:title");
                        xlsx_write_chart_text (state, xml, text, obj);
+                       xlsx_write_chart_uint (xml, "c:overlay", 0);
                        gsf_xml_out_end_element (xml);
                }
        }


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