Finish converting struct variable to an opaque type. In this
[pspp-builds.git] / src / ui / gui / var-type-dialog.c
index 121804331b84afb5c842b4dff24869143ddffc06..a4b66cc2917d61c43e244721b53568da7d4146de 100644 (file)
@@ -819,14 +819,14 @@ on_var_type_ok_clicked(GtkWidget *w, gpointer data)
     gint decimals = atoi(gtk_entry_get_text
                         (GTK_ENTRY(dialog->entry_decimals)));
 
-    gint new_type = NUMERIC;
+    gint new_type = VAR_NUMERIC;
     gint new_width = 0;
     bool result = false;
     struct fmt_spec spec;
     switch (dialog->active_button) 
       {
       case BUTTON_STRING:
-       new_type = ALPHA;
+       new_type = VAR_STRING;
        new_width = width;
        result = make_output_format_try(&spec, FMT_A, width, 0);
        break;