[goffice] Do not unneccessarily include numbers in number formats when exporting to ODF. [#671860]



commit c514a50f2868402bbdbcbb0e777c0bb8f050726f
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Sun Mar 18 20:40:41 2012 -0600

    Do not unneccessarily include numbers in number formats when exporting to ODF. [#671860]
    
    2012-03-18 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* goffice/utils/go-format.c (go_format_output_number_to_odf): do not
    	unneccessarily include a number:number element

 ChangeLog                 |    5 +++++
 NEWS                      |    3 +++
 goffice/utils/go-format.c |    1 -
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8a662fc..4bd3b2c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-03-18 Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* goffice/utils/go-format.c (go_format_output_number_to_odf): do not
+	unneccessarily include a number:number element
+
+2012-03-18 Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* goffice/utils/go-format.c (go_format_output_scientific_number_to_odf):
 	fix output of scientific formats
 
diff --git a/NEWS b/NEWS
index 8ddaa3d..1332e2e 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ goffice 0.9.3:
 
 Andreas:
 	* Fix output of scientific number formats to ODF. [#672353]
+	* Do not unneccessarily include numbers in number formats when exporting
+	to ODF. [#671860]
+
 Jean:
 	* Add introspection support. [#670161]
 	* Make introspection build when libgoffice is not installed [#671699]
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index b03f784..d105382 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -7851,7 +7851,6 @@ go_format_output_number_to_odf (GsfXMLOut *xout, GOFormat const *fmt,
 		switch (t) {
 		case 0: case ';':
 			ODF_CLOSE_STRING;
-			number_seen = TRUE; /* since we need a number element */
 			ODF_WRITE_NUMBER;
 			gsf_xml_out_end_element (xout); /* </number:number-style> */
 			g_string_free (accum, TRUE);



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