From: John Darrington Date: Thu, 7 Mar 2013 18:25:27 +0000 (+0100) Subject: Let the test program open both kinds of spreadsheet X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63683e1c0acb043da6ee1e4237475ab573b4ee3c;hp=-c;p=pspp Let the test program open both kinds of spreadsheet --- 63683e1c0acb043da6ee1e4237475ab573b4ee3c 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);