struct tab_table *table = tab_create (header_cols + 2, header_rows + 2);
- const struct variable *wv = dict_get_weight (dict);
- const struct fmt_spec *wfmt = wv ? var_get_print_format (wv) : & F_8_0;
+ const struct fmt_spec *wfmt = dict_get_weight_format (dict);
struct string pair_name;
struct tab_table *table = tab_create (5, t2s->n_pairs + 1);
- const struct variable *wv = dict_get_weight (dict);
- const struct fmt_spec *wfmt = wv ? var_get_print_format (wv) : & F_8_0;
+ const struct fmt_spec *wfmt = dict_get_weight_format (dict);
tab_title (table, _("Test Statistics"));
tab_set_format (table, RC_WEIGHT, wfmt);