[gnumeric] xlsx: minor parsing fix.



commit 16eb664a8623cbba1d2a996eaca3d9adfd2b07f7
Author: Morten Welinder <terra gnome org>
Date:   Mon May 4 12:44:29 2015 -0400

    xlsx: minor parsing fix.

 plugins/excel/xlsx-read-drawing.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index 478ed37..56c4dbb 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -1080,8 +1080,9 @@ static void
 xlsx_axis_custom_unit (GsfXMLIn *xin, xmlChar const **attrs)
 {
        XLSXReadState *state = (XLSXReadState *)xin->user_state;
-       double f;
-       if (state->axis.obj && attr_float (xin, attrs, "val", &f) && f != 0)
+       gnm_float f = 1;
+       (void)simple_float (xin, attrs, &f);
+       if (state->axis.obj && f != 0)
                g_object_set (state->axis.obj, "display-factor", f, NULL);
 }
 


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