[goffice] Only add gnm:engineering to ODF when appropriate.



commit 89dd1a3897697ffda8e20d0a4e40b238e815768e
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Wed Jun 24 14:12:07 2009 -0600

    Only add gnm:engineering to ODF when appropriate.
    
    2009-06-24  Andreas J. Guelzow  <aguelzow pyrshep ca>
    
    	* goffice/utils/go-format.c
    	(go_format_output_scientific_number_element_to_odf): only add
    	  gnm:engineering when asked to do so

 ChangeLog                 |    6 ++++++
 goffice/utils/go-format.c |    5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4457864..773e1c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-24  Andreas J. Guelzow  <aguelzow pyrshep ca>
+
+	* goffice/utils/go-format.c 
+	(go_format_output_scientific_number_element_to_odf): oly add
+	  gnm:engineering when asked to do so
+
 2009-06-23  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
 	* utils/go-format.c (go_format_output_date_to_odf): be as explicit 
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index 7e4ddca..603cdf0 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -6383,14 +6383,15 @@ go_format_output_scientific_number_element_to_odf (GsfXMLOut *xout,
 						   int min_decimal_digits,
 						   int min_exponent_digits,
 						   gboolean comma_seen,
-						   gboolean enineering)
+						   gboolean engineering)
 {
 	gsf_xml_out_start_element (xout, NUMBER "scientific-number");
 	gsf_xml_out_add_int (xout, NUMBER "decimal-places", min_decimal_digits);
 	odf_add_bool (xout, NUMBER "grouping", comma_seen);
 	gsf_xml_out_add_int (xout, NUMBER "min-integer-digits", min_integer_digits);
 	gsf_xml_out_add_int (xout, NUMBER "min-exponent-digits", min_exponent_digits);
-	odf_add_bool (xout, GNMSTYLE "engineering", TRUE);
+	if (engineering)
+		odf_add_bool (xout, GNMSTYLE "engineering", TRUE);
 	gsf_xml_out_end_element (xout); /* </number:number> */
 }
 



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