From ed16129b0c06f7dd8b20d0dfbba802588e09e039 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 1 Aug 2009 00:26:02 +0000 Subject: Prevent negative calculated width of replaced inlines in layout_minmax_line(). svn path=/trunk/netsurf/; revision=8933 --- render/layout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/render/layout.c b/render/layout.c index 8c2a4de0e..23b6912bb 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2678,7 +2678,9 @@ struct box *layout_minmax_line(struct box *first, &fixed, &frac); calculate_mbp_width(b->style, RIGHT, true, true, true, &fixed, &frac); - width += fixed; + + if (0 < width + fixed) + width += fixed; } else { /* form control with no object */ if (width == AUTO) -- cgit v1.2.3