From add94ad0381bae4889dcd46620b8bfe4e4f443ce Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 11 Feb 2004 20:51:34 +0000 Subject: [project @ 2004-02-11 20:51:34 by bursa] Fix crash related to floats. svn path=/import/netsurf/; revision=535 --- render/layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render') 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) { -- cgit v1.2.3