Prevent negative calculated width of replaced inlines in layout_minmax_line().

svn path=/trunk/netsurf/; revision=8933
This commit is contained in:
John Mark Bell 2009-08-01 00:26:02 +00:00
parent 3128ec1cdc
commit ed16129b0c
1 changed files with 3 additions and 1 deletions

View File

@ -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)