diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-03-05 23:03:44 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-03-05 23:03:44 +0000 |
commit | 28dc80a3a558b7ee49b40211eb8adbc7853212a6 (patch) | |
tree | 552ac3fb4dfee4bcea7f9775bc8684592c442972 | |
parent | 8c8ef2268d3a921565d7a2f28ab633c604823c09 (diff) | |
download | netsurf-28dc80a3a558b7ee49b40211eb8adbc7853212a6.tar.gz netsurf-28dc80a3a558b7ee49b40211eb8adbc7853212a6.tar.bz2 |
Esimated width is fine for last box.
svn path=/trunk/netsurf/; revision=11922
-rw-r--r-- | render/layout.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c index d6e47257b..ca22ca36f 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2182,9 +2182,11 @@ bool layout_line(struct box *first, int *width, int *y, /* If the current text has not been measured (i.e. its * width was estimated after splitting), and it fits on - * the line, measure it properly. */ + * the line, measure it properly, so next box is placed + * correctly. */ if (b->text && (x + b->width < x1 - x0) && - !(b->flags & MEASURED)) { + !(b->flags & MEASURED) && + b->next) { font_func->font_width(&fstyle, b->text, b->length, &b->width); b->flags |= MEASURED; |