X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fautorecode.c;h=91fffcf27a07158b8f78ffa9bc1833fb2e428aba;hb=3b54533821614d17afc61f1cd3b87d3a06fbf4da;hp=dcd0a14d76fc1a0330774032cf35b3d3aaab8226;hpb=899e0af5a1de32d108cb27fdca2c8c105f5bdd45;p=pspp diff --git a/src/language/stats/autorecode.c b/src/language/stats/autorecode.c index dcd0a14d76..91fffcf27a 100644 --- a/src/language/stats/autorecode.c +++ b/src/language/stats/autorecode.c @@ -369,7 +369,7 @@ cmd_autorecode (struct lexer *lexer, struct dataset *ds) : pivot_value_new_text_format (N_("Recoding %s into %s."), spec->src_name, var_get_name (spec->dst))); - struct pivot_table *table = pivot_table_create__ (title); + struct pivot_table *table = pivot_table_create__ (title, "Recoding"); pivot_dimension_create ( table, PIVOT_AXIS_COLUMN, N_("Attributes"), @@ -491,9 +491,10 @@ arc_free (struct autorecode_pgm *arc) } size_t n_rec_items = - (arc->n_specs == 1 || arc->specs[0].items == arc->specs[1].items + (arc->n_specs >= 2 && arc->specs[0].items == arc->specs[1].items ? 1 : arc->n_specs); + for (size_t i = 0; i < n_rec_items; i++) { struct arc_spec *spec = &arc->specs[i];