[gnumeric] Read min-exponent-digits from ODF files



commit 7dd48ca37a43ee512688639fb14d2edc3f4a9b44
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Fri Aug 5 12:31:14 2011 -0600

    Read min-exponent-digits from ODF files
    
    2011-08-05  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-read.c (odf_scientific): read min-exponent-digits

 ChangeLog                            |    2 +-
 plugins/openoffice/ChangeLog         |    4 ++++
 plugins/openoffice/openoffice-read.c |    6 +++---
 3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0b9b16b..0cbd6d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
-2011-08-04 Andreas J. Guelzow <aguelzow pyrshep ca>
+2011-08-05 Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* src/wbc-gtk.c (edit_area_button_menu): make sure everything is
 	initially insensitive
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 19c1652..3154656 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,7 @@
+2011-08-05  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* openoffice-read.c (odf_scientific): read min-exponent-digits
+
 2011-08-01  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* plugin.xml.in: correct mime types
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 432f450..eee651d 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -4038,9 +4038,9 @@ odf_scientific (GsfXMLIn *xin, xmlChar const **attrs)
 		else if (oo_attr_int_range (xin, attrs, OO_NS_NUMBER, "min-integer-digits",
 					      &details->min_digits, 0, 30))
 			;
-/* 		else if (gsf_xml_in_namecmp (xin, CXML2C (attrs[0]), OO_NS_NUMBER,  */
-/* 					     "min-exponent-digits")) */
-/* 			min_exp_digits = atoi (CXML2C (attrs[1])); */
+		else if (oo_attr_int_range (xin, attrs, OO_NS_NUMBER, "min-exponent-digits",
+					      &details->exponent_digits, 0, 30))
+			;
 		else if (oo_attr_bool (xin, attrs, OO_GNUM_NS_EXT, "engineering",
 				       &engineering));
 	if (engineering)



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