From e5f55a27ef4991c652c1bc94541d4cfe7ded381e Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 27 Jul 2009 10:22:44 +0000 Subject: Fix potential crash when inline replaced elements have percentage width. svn path=/trunk/netsurf/; revision=8814 --- render/layout.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index ef7ac024d..8c2a4de0e 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2642,6 +2642,8 @@ struct box *layout_minmax_line(struct box *first, /* b->width = width * FIXTOFLT(value) / 100 */ + + width = AUTO; } else { width = FIXTOINT(nscss_len2px(value, unit, b->style)); -- cgit v1.2.3