[gnumeric] fix child element order of border element (XL is particular about this)
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] fix child element order of border element (XL is particular about this)
- Date: Fri, 24 Jun 2011 05:03:04 +0000 (UTC)
commit 92475cce0c428dbe57e25b061cdd92cbffb26f4a
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Thu Jun 23 23:01:21 2011 -0600
fix child element order of border element (XL is particular about this)
2011-06-23 Andreas J. Guelzow <aguelzow pyrshep ca>
* xlsx-write.c (xlsx_write_borders): fix element order
plugins/excel/ChangeLog | 4 ++++
plugins/excel/xlsx-write.c | 20 ++++++++++----------
2 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 20be8f0..ba50326 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,5 +1,9 @@
2011-06-23 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * xlsx-write.c (xlsx_write_borders): fix element order
+
+2011-06-23 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* xlsx-write.c (ns_docprops_core_cp): new
(ns_docprops_core_dc): new
(ns_docprops_core_dcmitype): new
diff --git a/plugins/excel/xlsx-write.c b/plugins/excel/xlsx-write.c
index 7d50e44..42d2e56 100644
--- a/plugins/excel/xlsx-write.c
+++ b/plugins/excel/xlsx-write.c
@@ -717,16 +717,6 @@ xlsx_write_borders (XLSXWriteState *state, GsfXMLOut *xml)
(xml, "diagonalDown",
(border->line_type != GNM_STYLE_BORDER_NONE));
}
- if (gnm_style_is_element_set (style, MSTYLE_BORDER_TOP))
- xlsx_write_border (state, xml,
- gnm_style_get_border
- (style, MSTYLE_BORDER_TOP),
- MSTYLE_BORDER_TOP);
- if (gnm_style_is_element_set (style, MSTYLE_BORDER_BOTTOM))
- xlsx_write_border (state, xml,
- gnm_style_get_border
- (style, MSTYLE_BORDER_BOTTOM),
- MSTYLE_BORDER_BOTTOM);
if (gnm_style_is_element_set (style, MSTYLE_BORDER_LEFT))
xlsx_write_border (state, xml,
gnm_style_get_border
@@ -737,6 +727,16 @@ xlsx_write_borders (XLSXWriteState *state, GsfXMLOut *xml)
gnm_style_get_border
(style, MSTYLE_BORDER_RIGHT),
MSTYLE_BORDER_RIGHT);
+ if (gnm_style_is_element_set (style, MSTYLE_BORDER_TOP))
+ xlsx_write_border (state, xml,
+ gnm_style_get_border
+ (style, MSTYLE_BORDER_TOP),
+ MSTYLE_BORDER_TOP);
+ if (gnm_style_is_element_set (style, MSTYLE_BORDER_BOTTOM))
+ xlsx_write_border (state, xml,
+ gnm_style_get_border
+ (style, MSTYLE_BORDER_BOTTOM),
+ MSTYLE_BORDER_BOTTOM);
if (gnm_style_is_element_set (style, MSTYLE_BORDER_DIAGONAL)) {
GnmBorder *border = gnm_style_get_border
(style, MSTYLE_BORDER_DIAGONAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]