X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fsplit-file.c;h=05b39bc02306c6594a55ff32f2f03fadb9dbbcbb;hb=888d0f91d57e0c3c5a4206c30ac71eb87bf44227;hp=0f648e530399b8cd0109ab3ca88413d4a9fcd2f7;hpb=65e61cc92b48297625bc71cf31b8a19e301eb6c1;p=pspp-builds.git diff --git a/src/language/dictionary/split-file.c b/src/language/dictionary/split-file.c index 0f648e53..05b39bc0 100644 --- a/src/language/dictionary/split-file.c +++ b/src/language/dictionary/split-file.c @@ -92,14 +92,14 @@ output_split_file_values (const struct dataset *ds, const struct ccase *c) struct variable *v = split[i]; char temp_buf[80]; const char *val_lab; + const struct fmt_spec *print = var_get_print_format (v); - assert (v->type == NUMERIC || v->type == ALPHA); - tab_text (t, 0, i + 1, TAB_LEFT | TAT_PRINTF, "%s", v->name); + tab_text (t, 0, i + 1, TAB_LEFT | TAT_PRINTF, "%s", var_get_name (v)); - data_out (case_data (c, v->fv), &v->print, temp_buf); - - temp_buf[v->print.w] = 0; - tab_text (t, 1, i + 1, TAT_PRINTF, "%.*s", v->print.w, temp_buf); + data_out (case_data (c, v->fv), print, temp_buf); + temp_buf[print->w] = 0; + + tab_text (t, 1, i + 1, TAT_PRINTF, "%.*s", print->w, temp_buf); val_lab = val_labs_find (v->val_labs, *case_data (c, v->fv)); if (val_lab)