Appended "EXECUTE." to the end of syntax generated by the compute dialog.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 23 Nov 2007 05:39:53 +0000 (05:39 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 23 Nov 2007 05:39:53 +0000 (05:39 +0000)
src/ui/gui/ChangeLog
src/ui/gui/compute-dialog.c

index 2aeb0615adf4c3fb1f083eb2844c48ed65f854c4..62b8d162a46617d3542fd1113018504c1db03318 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-23  John Darrington <john@darrington.wattle.id.au>
+
+       * compute-dialog.c (generate_syntax): Append "EXECUTE." to the 
+       generated syntax.
+
 2007-10-19  John Darrington <john@darrington.wattle.id.au>
 
         * psppire-acr.c psppire-acr.h (new files): Added this new
index 3386680d35163a2ad6d107e8b3c018402dad9f21..553d55fffbb61b8d41a4ed4628b103d9ecd559a4 100644 (file)
@@ -176,7 +176,7 @@ generate_syntax (const struct compute_dialog *cd)
 
   string = g_string_sized_new (64);
 
-  if ( cd-> use_type && 
+  if ( cd-> use_type &&
        NULL == psppire_dict_lookup_var (cd->dict, target_name ))
     {
       if ( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (string_toggle)))
@@ -199,11 +199,13 @@ generate_syntax (const struct compute_dialog *cd)
                            target_name,
                            label);
 
-  g_string_append_printf (string, "COMPUTE %s = %s.",
+  g_string_append_printf (string, "COMPUTE %s = %s.\n",
                          target_name,
                          expression
                          );
 
+  g_string_append (string, "EXECUTE.\n");
+
   text = string->str;
 
   g_string_free (string, FALSE);