projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed unreachable code section
[pspp]
/
src
/
ui
/
gui
/
t-test-options.c
diff --git
a/src/ui/gui/t-test-options.c
b/src/ui/gui/t-test-options.c
index 1e44c0eb05829dcaf698d63adc034ef3717f23e1..116c543f9476b857726be6e099a7fb511412cbb9 100644
(file)
--- a/
src/ui/gui/t-test-options.c
+++ b/
src/ui/gui/t-test-options.c
@@
-66,7
+66,7
@@
tt_options_dialog_create (GtkWindow *parent)
g_object_set (tto->confidence,
"use-underline", TRUE,
g_object_set (tto->confidence,
"use-underline", TRUE,
- "mnemonic-widget", psppire_scanf_get_child (
tto->confidence
, 0),
+ "mnemonic-widget", psppire_scanf_get_child (
PSPPIRE_SCANF (tto->confidence)
, 0),
NULL);
tto->dialog = get_widget_assert (tto->xml, "options-dialog");
NULL);
tto->dialog = get_widget_assert (tto->xml, "options-dialog");
@@
-92,6
+92,8
@@
tt_options_dialog_create (GtkWindow *parent)
void
tt_options_dialog_destroy (struct tt_options_dialog *tto)
{
void
tt_options_dialog_destroy (struct tt_options_dialog *tto)
{
+ if (tto == NULL)
+ return;
gtk_container_remove (GTK_CONTAINER (tto->box), tto->confidence);
g_object_unref (tto->xml);
g_free (tto);
gtk_container_remove (GTK_CONTAINER (tto->box), tto->confidence);
g_object_unref (tto->xml);
g_free (tto);
@@
-127,14
+129,20
@@
tt_options_dialog_run (struct tt_options_dialog *tto)
void
tt_options_dialog_append_syntax (const struct tt_options_dialog *tto, GString *str)
{
void
tt_options_dialog_append_syntax (const struct tt_options_dialog *tto, GString *str)
{
- g_string_append (str, "\t/MISSING=");
+ struct string dss;
+ ds_init_empty (&dss);
- if ( tto->excl == EXCL_ANALYSIS )
- g_string_append (str, "ANALYSIS");
+ ds_put_cstr (&dss, "\t/MISSING=");
+
+ if (tto->excl == EXCL_ANALYSIS)
+ ds_put_cstr (&dss, "ANALYSIS");
else
else
- g_string_append (str, "LISTWISE");
+ ds_put_cstr (&dss, "LISTWISE");
+
+ ds_put_c_format (&dss, "\n\t/CRITERIA=CIN(%g)",
+ tto->confidence_interval/100.0);
+ g_string_append (str, ds_cstr (&dss));
- g_string_append_printf (str, "\n\t/CRITERIA=CIN(%g)",
- tto->confidence_interval/100.0);
+ ds_destroy (&dss);
}
}