Commit bc0ed38f authored by Morten Welinder's avatar Morten Welinder

xlsx: fix writing of trend line equation.

Also add test for this.
parent 57e64db4
......@@ -14,6 +14,7 @@ Morten:
* Fix error on xlsx files with bogus Print_Area.
* xlsx import improvements for contour graphs.
* xlsx export improvements for contour graphs.
* Fix xlsx export of trend line equation.
Gnumeric 1.12.35
......@@ -3,6 +3,7 @@
* xlsx-write-drawing.c (xlsx_write_axis): Make axis tag for
contour charts match what XL wants. Even if it isn't obvious why.
(xlsx_write_one_chart): Save a view3D for contour charts.
(xlsx_write_one_plot): Fix writing trendline equation.
2017-10-24 Morten Welinder <>
......@@ -1118,7 +1118,6 @@ xlsx_write_one_plot (XLSXWriteState *state, GsfXMLOut *xml,
g_free (name);
xlsx_write_go_style (xml, state, go_styled_object_get_style (GO_STYLED_OBJECT (trend)));
xlsx_write_chart_cstr_unchecked (xml, "c:trendlineType", trend_type);
gsf_xml_out_end_element (xml); /* </c:trendline> */
eq = gog_object_get_child_by_name (trend, "Equation");
if (eq) {
......@@ -1129,6 +1128,8 @@ xlsx_write_one_plot (XLSXWriteState *state, GsfXMLOut *xml,
if (has_eq)
xlsx_write_chart_bool (xml, "c:dispEq", TRUE);
gsf_xml_out_end_element (xml); /* </c:trendline> */
g_slist_free (children);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment