diff options
author | James Bursa <james@netsurf-browser.org> | 2005-02-26 18:30:48 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-02-26 18:30:48 +0000 |
commit | 10b27f45f84d05d75d2d6c1c31ed851038784e4f (patch) | |
tree | b56ae0f00d5620945f382fb8a0c04b6c9cebb4ca | |
parent | dace6363292a09129fd44dfb8117f930b162a01d (diff) | |
download | netsurf-10b27f45f84d05d75d2d6c1c31ed851038784e4f.tar.gz netsurf-10b27f45f84d05d75d2d6c1c31ed851038784e4f.tar.bz2 |
[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
-rw-r--r-- | render/layout.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 <info@tinct.net> - * Copyright 2004 James Bursa <bursa@users.sourceforge.net> + * Copyright 2005 James Bursa <bursa@users.sourceforge.net> * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net> */ @@ -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: |