From ac7b63b27fa2ab9e5ea8ee979a562bc9bdf27b12 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 2 Jan 2011 12:04:23 +0000 Subject: Add some final bits necessary in the upcoming -Tascii tbl stuff. --- tbl_layout.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tbl_layout.c') diff --git a/tbl_layout.c b/tbl_layout.c index ecb7e508..b01b521c 100644 --- a/tbl_layout.c +++ b/tbl_layout.c @@ -322,6 +322,8 @@ cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) hp->prev = h->prev; if (h->prev) h->prev->next = hp; + if (h == tbl->first_head) + tbl->first_head = hp; h->prev = hp; hp->next = h; head_adjust(p, hp); -- cgit