Gnumeric Reader: Use symbolic value instead of literal integer
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 11 May 2013 07:21:01 +0000 (09:21 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 11 May 2013 07:21:01 +0000 (09:21 +0200)
src/data/gnumeric-reader.c

index a0a4766652d2c07f029f0e1cb163bc6f0bf70894..2356adcc761c421c9414eea081dbb56b6bb815c8 100644 (file)
@@ -782,7 +782,7 @@ gnumeric_make_reader (struct spreadsheet *spreadsheet,
              xmlChar *attr =
                xmlTextReaderGetAttribute (r->rsd.xtr, _xml ("ValueType"));
 
-             if ( NULL == attr || 60 !=  _xmlchar_to_int (attr))
+             if ( NULL == attr || VALUE_STRING !=  _xmlchar_to_int (attr))
                var_spec [idx].width = 0;
 
              free (attr);