From 4866b512b8f74f4e304732aadfdb49dc82143b31 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Thu, 11 Sep 2003 23:22:33 +0000 Subject: [project @ 2003-09-11 23:22:33 by bursa] Min width calculation bug fix. svn path=/import/netsurf/; revision=286 --- render/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index b3b625e7f..e6974c047 100644 --- a/render/layout.c +++ b/render/layout.c @@ -880,7 +880,7 @@ void calculate_inline_container_widths(struct box *box) word = space + 1, space = strchr(word, ' ')) { width = font_width(child->font, word, - (unsigned int) (space - word)); + (unsigned int) (space - word - 1)); if (min < width) min = width; } width = font_width(child->font, word, strlen(word)); -- cgit v1.2.3