From: John Darrington Date: Fri, 23 Nov 2007 05:39:53 +0000 (+0000) Subject: Appended "EXECUTE." to the end of syntax generated by the compute dialog. X-Git-Tag: v0.6.0~183 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccf449c7dc6ecea4d94303ad1865512f3c149cc6;p=pspp-builds.git Appended "EXECUTE." to the end of syntax generated by the compute dialog. --- diff --git a/src/ui/gui/ChangeLog b/src/ui/gui/ChangeLog index 2aeb0615..62b8d162 100644 --- a/src/ui/gui/ChangeLog +++ b/src/ui/gui/ChangeLog @@ -1,3 +1,8 @@ +2007-11-23 John Darrington + + * compute-dialog.c (generate_syntax): Append "EXECUTE." to the + generated syntax. + 2007-10-19 John Darrington * psppire-acr.c psppire-acr.h (new files): Added this new diff --git a/src/ui/gui/compute-dialog.c b/src/ui/gui/compute-dialog.c index 3386680d..553d55ff 100644 --- a/src/ui/gui/compute-dialog.c +++ b/src/ui/gui/compute-dialog.c @@ -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);