[gnumeric] don't expect goffice to understand gnm_float



commit bbfeddc657c047f748be4fc1329e574d37300dcc
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Sun Aug 26 23:12:19 2012 -0600

    don't expect goffice to understand gnm_float
    
    2012-08-26  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-read.c (odf_custom_shape_end): put doubles in teh hash since
    	goffice does not know gnm_float.

 plugins/openoffice/ChangeLog         |    5 +++++
 plugins/openoffice/openoffice-read.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index fe1c108..8ed6bcc 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
 2012-08-26  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* openoffice-read.c (odf_custom_shape_end): put doubles in teh hash since
+	goffice does not know gnm_float.
+
+2012-08-26  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* openoffice-read.c (odf_parse_float): new
 	(odf_custom_shape_end): interpret modifiers
 	(odf_custom_shape_equation): new
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 845334e..4cfb424 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -9131,7 +9131,7 @@ odf_custom_shape_end (GsfXMLIn *xin, GsfXMLBlob *blob)
 				char *end  = next;
 				gnm_float x = odf_parse_float (next, &end);
 				if (end > next) {
-					gnm_float *xp = g_new (gnm_float, 1);
+					double *xp = g_new (double, 1);
 					char *name = g_strdup_printf ("$%i", i);
 					*xp = x;
 					g_hash_table_insert (vals, name, xp);



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