From 10b27f45f84d05d75d2d6c1c31ed851038784e4f Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 26 Feb 2005 18:30:48 +0000 Subject: [project @ 2005-02-26 18:30:48 by bursa] Fix some FP exceptions due to widths left as UNKNOWN_WIDTH. svn path=/import/netsurf/; revision=1526 --- render/layout.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index d2999f374..a32265018 100644 --- a/render/layout.c +++ b/render/layout.c @@ -3,7 +3,7 @@ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2005 Richard Wilson - * Copyright 2004 James Bursa + * Copyright 2005 James Bursa * Copyright 2003 Phil Mellor */ @@ -732,8 +732,8 @@ bool layout_line(struct box *first, int width, int *y, int space_before = 0, space_after = 0; unsigned int inline_count = 0; - LOG(("first->text '%.*s', width %i, y %i, cy %i", - first->length, first->text, width, *y, cy)); + LOG(("first %p, first->text '%.*s', width %i, y %i, cy %i", + first, first->length, first->text, width, *y, cy)); /* find sides at top of line */ x0 += cx; @@ -1755,6 +1755,8 @@ bool calculate_inline_container_widths(struct box *box) else if (child->text) calculate_inline_widths(child, &min, &line_max); + else + child->width = 0; break; case BOX_INLINE_BLOCK: -- cgit v1.2.3