From a5a1e8c05118edd5d9fd0dfd1a6f421632779292 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 3 Nov 2007 08:50:22 +0000 Subject: [PATCH] Fix buglet reading spreadsheets with only one row. --- src/data/gnumeric-reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/gnumeric-reader.c b/src/data/gnumeric-reader.c index f402ef11..f4292a06 100644 --- a/src/data/gnumeric-reader.c +++ b/src/data/gnumeric-reader.c @@ -551,7 +551,7 @@ gnumeric_open_reader (struct gnumeric_read_info *gri, struct dictionary **dict) xmlChar *attr = xmlTextReaderGetAttribute (r->xtr, _xml ("ValueType")); - if ( 60 != _xmlchar_to_int (attr)) + if ( NULL == attr || 60 != _xmlchar_to_int (attr)) var_spec [idx].width = 0; free (attr); -- 2.30.2