[gnumeric] fix 1.10.16's paper bag mistake re xlsx number format export



commit db4e19d8929971a2e75910d2a2d83b56e5be919d
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Fri Jun 24 12:09:43 2011 -0600

    fix 1.10.16's paper bag mistake re xlsx number format export
    
     2011-06-24  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* xlsx-write.c (xlsx_write_num_formats): the format strings
    	need to be properly encoded for xlm

 plugins/excel/ChangeLog    |    5 +++++
 plugins/excel/xlsx-write.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index ba50326..d2b6930 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-24  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* xlsx-write.c (xlsx_write_num_formats): the format strings
+	need to be properly encoded for xlm
+
 2011-06-23  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* xlsx-write.c (xlsx_write_borders): fix element order
diff --git a/plugins/excel/xlsx-write.c b/plugins/excel/xlsx-write.c
index 42d2e56..c66dc5f 100644
--- a/plugins/excel/xlsx-write.c
+++ b/plugins/excel/xlsx-write.c
@@ -300,7 +300,7 @@ xlsx_write_num_formats (XLSXWriteState *state, GsfXMLOut *xml)
 		gsf_xml_out_add_int (xml, "count", count);
 		for (i = 0 , n = NUM_FORMAT_BASE; i < count ; i++, n++) {
 			gsf_xml_out_start_element (xml, "numFmt");
-			gsf_xml_out_add_cstr_unchecked 
+			gsf_xml_out_add_cstr 
 				(xml, "formatCode", 
 				 g_ptr_array_index (num_format_array, i));
 			gsf_xml_out_add_int (xml, "numFmtId", n);



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