[gnumeric] xlsx: write full style for points, not just marker.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xlsx: write full style for points, not just marker.
- Date: Sun, 5 Apr 2015 22:45:17 +0000 (UTC)
commit a20fad36f4a4bc960859eb0bf4970e9669753a0e
Author: Morten Welinder <terra gnome org>
Date: Sun Apr 5 18:44:48 2015 -0400
xlsx: write full style for points, not just marker.
Note, that in dPt "marker" comes before "spPr" unlike elsewhere.
plugins/excel/xlsx-write-drawing.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/xlsx-write-drawing.c b/plugins/excel/xlsx-write-drawing.c
index e64ab84..ab8f3ef 100644
--- a/plugins/excel/xlsx-write-drawing.c
+++ b/plugins/excel/xlsx-write-drawing.c
@@ -178,6 +178,7 @@ xlsx_write_rpr (GsfXMLOut *xml, GOStyle *style)
typedef struct {
gboolean def_has_markers;
gboolean def_has_lines;
+ gboolean inhibit_marker;
const char *spPr_ns;
gboolean must_fill_line;
gboolean must_fill_fill;
@@ -196,6 +197,7 @@ xlsx_style_context_init (XLSXStyleContext *sctx, XLSXWriteState *state)
{
sctx->def_has_markers = FALSE;
sctx->def_has_lines = TRUE;
+ sctx->inhibit_marker = FALSE;
sctx->spPr_ns = "c";
sctx->must_fill_line = FALSE;
sctx->must_fill_fill = FALSE;
@@ -609,7 +611,8 @@ xlsx_write_go_style_full (GsfXMLOut *xml, GOStyle *style, const XLSXStyleContext
gsf_xml_out_end_element (xml); /* "c:txPr" */
}
- xlsx_write_go_style_marker (xml, style, sctx);
+ if (!sctx->inhibit_marker)
+ xlsx_write_go_style_marker (xml, style, sctx);
}
static void
@@ -997,6 +1000,8 @@ xlsx_write_one_plot (XLSXWriteState *state, GsfXMLOut *xml,
sctx.def_has_markers = TRUE;
style = go_styled_object_get_style (GO_STYLED_OBJECT (pt));
xlsx_write_go_style_marker (xml, style, &sctx);
+ sctx.inhibit_marker = TRUE;
+ xlsx_write_go_style_full (xml, style, &sctx);
gsf_xml_out_end_element (xml); /* </c:dPt> */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]