summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-09-11 23:22:33 +0000
committerJames Bursa <james@netsurf-browser.org>2003-09-11 23:22:33 +0000
commit4866b512b8f74f4e304732aadfdb49dc82143b31 (patch)
tree8e306a1cc59bf41f14719d78fc81f4330b39626e /render/layout.c
parent7e2255ce969d4fcd55778acca2d5e71566d6f19c (diff)
downloadnetsurf-4866b512b8f74f4e304732aadfdb49dc82143b31.tar.gz
netsurf-4866b512b8f74f4e304732aadfdb49dc82143b31.tar.bz2
[project @ 2003-09-11 23:22:33 by bursa]
Min width calculation bug fix. svn path=/import/netsurf/; revision=286
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c2
1 files changed, 1 insertions, 1 deletions
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));