dictionary: New function dict_get_weight_format().
[pspp] / src / language / stats / runs.c
index cd963d32736f2630cc12663162aa9a9b9eba983c..9a32a530e836744f827ff39e524f43a3c9b85f4e 100644 (file)
@@ -308,8 +308,7 @@ runs_execute (const struct dataset *ds,
 static void
 show_runs_result (const struct runs_test *rt, const struct run_state *rs, const struct dictionary *dict)
 {
-  const struct variable *weight = dict_get_weight (dict);
-  const struct fmt_spec *wfmt = weight ? var_get_print_format (weight) : &F_8_0;
+  const struct fmt_spec *wfmt = dict_get_weight_format (dict);
 
   const struct one_sample_test *otp = &rt->parent;