From: Ben Pfaff Date: Wed, 2 Nov 2011 05:02:56 +0000 (-0700) Subject: gui: Make .csv available for output export with File|Export. X-Git-Tag: v0.7.9~116 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed023762b71d58d57db36af0e50ee1afe8acf3d3;p=pspp-builds.git gui: Make .csv available for output export with File|Export. The hard-coded 6 here was wrong: there are 7 file formats. It's better to use the n_FT constant. --- diff --git a/src/ui/gui/psppire-output-window.c b/src/ui/gui/psppire-output-window.c index 4793b3b3..1e283bae 100644 --- a/src/ui/gui/psppire-output-window.c +++ b/src/ui/gui/psppire-output-window.c @@ -558,7 +558,7 @@ create_file_type_list (void) GtkTreeIter iter; GtkListStore *list = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING); - for (i = 0 ; i < 6 ; ++i) + for (i = 0 ; i < n_FT ; ++i) { gtk_list_store_append (list, &iter); gtk_list_store_set (list, &iter,