diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-11 18:42:51 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-11 18:42:51 +0000 |
commit | 515cef8444fe531e8a89a7e39fb0cb01940a1488 (patch) | |
tree | 233e5b91abf4f8f7e80beaf4af600829c358f431 /desktop | |
parent | fe7b71edbf70ee2c29cdc2bb79a2f703f0037624 (diff) | |
download | netsurf-515cef8444fe531e8a89a7e39fb0cb01940a1488.tar.gz netsurf-515cef8444fe531e8a89a7e39fb0cb01940a1488.tar.bz2 |
Don't include '\0' in single-line nsfont_width call.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/textarea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index 8b3626761..a8e9f8869 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -498,7 +498,7 @@ static bool textarea_reflow(struct textarea *ta, unsigned int start) ta->lines[0].b_length = ta->show->len - 1; nsfont.font_width(&ta->fstyle, ta->show->data, - ta->show->len, &x); + ta->show->len - 1, &x); if (x > w) w = x; |