From ccf449c7dc6ecea4d94303ad1865512f3c149cc6 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Fri, 23 Nov 2007 05:39:53 +0000 Subject: [PATCH] Appended "EXECUTE." to the end of syntax generated by the compute dialog. --- src/ui/gui/ChangeLog | 5 +++++ src/ui/gui/compute-dialog.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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); -- 2.30.2