From 7e162b9b582b0c52f9c581cb74eef021566e9dff Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 28 Feb 2013 20:03:34 +0100 Subject: [PATCH] Got the last test working --- src/data/ods-reader.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.30.2