From 63683e1c0acb043da6ee1e4237475ab573b4ee3c Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 7 Mar 2013 19:25:27 +0100 Subject: [PATCH] Let the test program open both kinds of spreadsheet --- src/ui/gui/spreadsheet-test.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ui/gui/spreadsheet-test.c b/src/ui/gui/spreadsheet-test.c index 2e88402b52..0988582879 100644 --- a/src/ui/gui/spreadsheet-test.c +++ b/src/ui/gui/spreadsheet-test.c @@ -80,7 +80,7 @@ on_clicked (GtkButton *button, struct xxx *stuff) opts.read_names = TRUE; opts.asw = -1; - reader = ods_make_reader (stuff->sp, &opts); + reader = spreadsheet_make_reader (stuff->sp, &opts); proto = casereader_get_proto (reader); nvals = caseproto_get_n_widths (proto); @@ -121,10 +121,8 @@ main (int argc, char *argv[] ) stuff.sp = NULL; -#if 0 - if (sp == NULL) - sp = gnumeric_probe (argv[1], false); -#endif + if (stuff.sp == NULL) + stuff.sp = gnumeric_probe (argv[1], false); if (stuff.sp == NULL) stuff.sp = ods_probe (argv[1], false); -- 2.30.2