summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-09-23 18:35:44 +0000
committerJames Bursa <james@netsurf-browser.org>2003-09-23 18:35:44 +0000
commit29952cfc1f7b4db4ca8f999d1c52813b8a49ab01 (patch)
treeb820f5a6af7a6c9080870f768d5bf967a0922d71 /render/layout.c
parent0f89eafdc2d7fd235c156593bf8986aa662881a0 (diff)
downloadnetsurf-29952cfc1f7b4db4ca8f999d1c52813b8a49ab01.tar.gz
netsurf-29952cfc1f7b4db4ca8f999d1c52813b8a49ab01.tar.bz2
[project @ 2003-09-23 18:35:44 by bursa]
More work on editing textareas. svn path=/import/netsurf/; revision=311
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c
index 7ee46b898..3b9a61810 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -430,6 +430,9 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long
c->space = 1;
c2->next = c->next;
c->next = c2;
+ c2->prev = c;
+ if (!c2->next)
+ c2->parent->last = c2;
b = c2;
}
x += space_before + w;
@@ -456,6 +459,9 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long
c->space = 1;
c2->next = c->next;
c->next = c2;
+ c2->prev = c;
+ if (!c2->next)
+ c2->parent->last = c2;
b = c2;
x += space_before + w;
/* fprintf(stderr, "layout_line: overflow, fit\n"); */