From bc91bc1c5af4b75b738c04b19cc88ffd992e6c7b Mon Sep 17 00:00:00 2001 From: Robert Kessl Date: Mon, 21 Jul 2014 09:39:25 +0200 Subject: [PATCH] tableprinter: table_update_ll now uses .idx --- ucw/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2