[gnumeric] Set simplify_mantissa on ODF import



commit debd439e7b1f4042d9f2d93436061174d20c5788
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Sat Nov 10 00:43:56 2012 -0700

    Set simplify_mantissa on ODF import
    
    2012-11-10  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-read.c (odf_scientific): set simplify_mantissa

 plugins/openoffice/ChangeLog         |    4 ++++
 plugins/openoffice/openoffice-read.c |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 3b36784..464b92a 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,9 @@
 2012-11-10  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* openoffice-read.c (odf_scientific): set simplify_mantissa
+
+2012-11-10  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* openoffice-read.c (odf_scientific): read forced-exponent-sign foreign
 	element
 
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index c67c872..45399f9 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -5045,6 +5045,7 @@ odf_scientific (GsfXMLIn *xin, xmlChar const **attrs)
 	if (engineering)
 		details->exponent_step = 3;	
 	details->use_markup = !use_literal_E;
+	details->simplify_mantissa = (details->min_digits == 0) && !use_literal_E;
 	go_format_generate_str (state->cur_format.accum, details);
 
 	go_format_details_free (details);



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