X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fpivot-table.c;fp=src%2Foutput%2Fpivot-table.c;h=c6197beb04dde747307cc757169b00836f69a8cc;hb=f821734badec2dcca4bdcd2069d22d60dc074c94;hp=bec8638bd03a037a3a096b2209968e6d0999486e;hpb=3b06535f48bdb8c367d9738c5b379febecb65c12;p=pspp diff --git a/src/output/pivot-table.c b/src/output/pivot-table.c index bec8638bd0..c6197beb04 100644 --- a/src/output/pivot-table.c +++ b/src/output/pivot-table.c @@ -1368,19 +1368,17 @@ pivot_table_set_weight_var (struct pivot_table *table, const struct variable *wv) { if (wv) - pivot_table_set_weight_format (table, var_get_print_format (wv)); + pivot_table_set_weight_format (table, *var_get_print_format (wv)); } /* Sets the format used for PIVOT_RC_COUNT cells to WFMT, which should be the - format for the dictionary whose data or statistics are being put into TABLE. - - This has no effect if WFMT is NULL. */ + 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) + const struct fmt_spec wfmt) { - if (wfmt) - table->weight_format = *wfmt; + table->weight_format = wfmt; } /* Returns true if TABLE has no cells, false otherwise. */