From: Robert Kessl Date: Mon, 21 Jul 2014 07:39:25 +0000 (+0200) Subject: tableprinter: table_update_ll now uses .idx X-Git-Tag: v6.1~3^2~77 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=bc91bc1c5af4b75b738c04b19cc88ffd992e6c7b;p=libucw.git tableprinter: table_update_ll now uses .idx --- diff --git a/ucw/table.c b/ucw/table.c index 272b694c..f6d0cba0 100644 --- a/ucw/table.c +++ b/ucw/table.c @@ -171,7 +171,7 @@ static void table_update_ll(struct table *tbl) } for(int i = 0; i < cols_to_output; i++) { - int col_def_idx = tbl->column_order[i].col_def - tbl->columns; + int col_def_idx = tbl->column_order[i].idx; int first = tbl->ll_headers[col_def_idx]; tbl->ll_headers[col_def_idx] = i; tbl->column_order[i].next_column = first;