[gnumeric] cleanup.



commit 2b9e7579ada1cb3a9da5a072748acfee70aeaf95
Author: Morten Welinder <terra gnome org>
Date:   Tue Jun 3 16:32:21 2014 -0400

    cleanup.

 plugins/excel/xlsx-read.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/plugins/excel/xlsx-read.c b/plugins/excel/xlsx-read.c
index e393da8..28e2fc2 100644
--- a/plugins/excel/xlsx-read.c
+++ b/plugins/excel/xlsx-read.c
@@ -3567,12 +3567,15 @@ static void
 xlsx_run_strikethrough (GsfXMLIn *xin, xmlChar const **attrs)
 {
        XLSXReadState *state = (XLSXReadState *)xin->user_state;
-       for (; attrs != NULL && attrs[0] && attrs[1] ; attrs += 2)
-               if (gsf_xml_in_namecmp (xin, attrs[0], XL_NS_SS, "val")) {
-                       PangoAttribute *attr = pango_attr_strikethrough_new (!strcmp (attrs[1], "true"));
-                       add_attr (state, attr);
+       gboolean st = TRUE;  /* Default */
 
-               }
+       for (; attrs != NULL && attrs[0] && attrs[1] ; attrs += 2) {
+               int i;
+               if (attr_bool (xin, attrs, "val", &i))
+                       st = i;
+       }
+
+       add_attr (state, pango_attr_strikethrough_new (st));
 }
 
 static void


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