X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fui%2Fgui%2Ft-test-options.c;h=19dda18caf5ef656020b6fcdda1c86922ff4b396;hb=0cba607fab2e2b3bcad0aca96da27254cb260f50;hp=467d4321ff00a416721cb9cecd17c3b935ff7599;hpb=6f3865480503c571963d8a2d1af858a4d72d4e88;p=pspp diff --git a/src/ui/gui/t-test-options.c b/src/ui/gui/t-test-options.c index 467d4321ff..19dda18caf 100644 --- a/src/ui/gui/t-test-options.c +++ b/src/ui/gui/t-test-options.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007, 2012 Free Software Foundation + Copyright (C) 2007, 2012, 2015 Free Software Foundation 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 @@ -92,6 +92,8 @@ tt_options_dialog_create (GtkWindow *parent) 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); @@ -137,7 +139,7 @@ tt_options_dialog_append_syntax (const struct tt_options_dialog *tto, GString *s else ds_put_cstr (&dss, "LISTWISE"); - ds_put_c_format (&dss, "\n\t/CRITERIA=CIN(%g)", + ds_put_c_format (&dss, "\n\t/CRITERIA=CI(%g)", tto->confidence_interval/100.0); g_string_append (str, ds_cstr (&dss));