summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/box_normalise.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/render/box_normalise.c b/render/box_normalise.c
index d153a1486..e241f447f 100644
--- a/render/box_normalise.c
+++ b/render/box_normalise.c
@@ -225,6 +225,8 @@ bool box_normalise_table(struct box *table, struct content * c)
table->children = row_group;
else
child->prev->next = row_group;
+ if (table->last == child)
+ table->last = row_group;
row_group->prev = child->prev;
while (child != 0 && (
child->type == BOX_BLOCK ||