Ensure that windows opens the right file for output.
[pspp-builds.git] / src / ui / gui / output-viewer.c
index 641944d00445f34fc48bc70229141c6e1d45a6d9..4bcd580a9fb078176fd4fdd222c7369f9228fe9b 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -278,8 +278,6 @@ reload_viewer (struct output_viewer *ov)
 }
 
 
-#define OUTPUT_FILE_NAME "psppire.txt"
-
 const char *
 output_file_name (void)
 {
@@ -287,7 +285,7 @@ output_file_name (void)
   static char *filename = NULL;
 
   if ( NULL == filename )
-    filename = xasprintf ("%s%s", dir, OUTPUT_FILE_NAME);
+    filename = xasprintf ("%s%s", dir, output_file_name ());
 
 
   return filename;