variable.c: New function var_set_width_and_formats
[pspp] / src / ui / gui / psppire-var-sheet.c
index 9d23cb9656aa814017d524b88e1b775552dd984c..d62a97e1fd1fa08866827dc05ae3d83b729e42bd 100644 (file)
@@ -453,8 +453,8 @@ on_type_click (PsppireCellRendererButton *cell,
 
   format = *var_get_print_format (var);
   psppire_var_type_dialog_run (GTK_WINDOW (toplevel), &format);
-  var_set_width (var, fmt_var_width (&format));
-  var_set_both_formats (var, &format);
+
+  var_set_width_and_formats (var, fmt_var_width (&format), &format, &format);
 }
 
 static void