summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2006-01-06 21:23:47 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2006-01-06 21:23:47 +0000
commit53a6cc7e06234f36e11c9e4ef9b1de3655368de0 (patch)
tree6d2859a3c495d6cc6580c3e6ad0bf256b94dc64f
parente4fa7102bd156e71e4e27fbb4cf137cb9185db49 (diff)
downloadnetsurf-53a6cc7e06234f36e11c9e4ef9b1de3655368de0.tar.gz
netsurf-53a6cc7e06234f36e11c9e4ef9b1de3655368de0.tar.bz2
[project @ 2006-01-06 21:23:47 by jmb]
Fix normalisation of tables to update table->last correctly svn path=/import/netsurf/; revision=1998
-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 ||