From: John Darrington Date: Thu, 28 Feb 2013 19:03:34 +0000 (+0100) Subject: Got the last test working X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e162b9b582b0c52f9c581cb74eef021566e9dff;p=pspp Got the last test working --- diff --git a/src/data/ods-reader.c b/src/data/ods-reader.c index 158a2735ac..8776a5e2c3 100644 --- a/src/data/ods-reader.c +++ b/src/data/ods-reader.c @@ -646,7 +646,6 @@ ods_make_reader (struct spreadsheet *spreadsheet, process_node (r); } - if (ret < 1) { msg (MW, _("Selected sheet or range of spreadsheet `%s' is empty."), @@ -711,6 +710,9 @@ ods_make_reader (struct spreadsheet *spreadsheet, int idx; process_node (r); + if ( ! reading_target_sheet (r) ) + break; + /* If the row is finished then stop for now */ if (r->state == STATE_TABLE && r->row > r->start_row + (opts->read_names ? 1 : 0))