pivot-table: Force width of weight formats to 40.
[pspp] / src / output / pivot-table.c
index c6197beb04dde747307cc757169b00836f69a8cc..213cfc028cc4ef81f70e9d21d003faccb45f4246 100644 (file)
@@ -1375,9 +1375,9 @@ pivot_table_set_weight_var (struct pivot_table *table,
    format for the dictionary whose data or statistics are being put into
    TABLE. */
 void
-pivot_table_set_weight_format (struct pivot_table *table,
-                               const struct fmt_spec wfmt)
+pivot_table_set_weight_format (struct pivot_table *table, struct fmt_spec wfmt)
 {
+  wfmt.w = 40;
   table->weight_format = wfmt;
 }