summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-02-11 20:51:34 +0000
committerJames Bursa <james@netsurf-browser.org>2004-02-11 20:51:34 +0000
commitadd94ad0381bae4889dcd46620b8bfe4e4f443ce (patch)
treee9af37a142b99c6c405b355f9d8a22367acb8c9c /render
parent9aabe954c0914a998ae1ad0069e0d2ddbea4bf57 (diff)
downloadnetsurf-add94ad0381bae4889dcd46620b8bfe4e4f443ce.tar.gz
netsurf-add94ad0381bae4889dcd46620b8bfe4e4f443ce.tar.bz2
[project @ 2004-02-11 20:51:34 by bursa]
Fix crash related to floats. svn path=/import/netsurf/; revision=535
Diffstat (limited to 'render')
-rw-r--r--render/layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 474474d73..f41e01b3e 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -523,7 +523,7 @@ struct box * layout_line(struct box *first, int width, int *y,
struct box * left;
struct box * right;
struct box * b;
- struct box * c = NULL;
+ struct box * c;
struct box * d;
struct box * fl;
int move_y = 0;
@@ -598,6 +598,7 @@ struct box * layout_line(struct box *first, int width, int *y,
}
}
+ c = first;
/* pass 2: place boxes in line */
for (x = x_previous = 0, b = first; x <= x1 - x0 && b != 0; b = b->next) {
if (b->type == BOX_INLINE || b->type == BOX_INLINE_BLOCK) {