diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2016-03-21 14:40:50 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2016-03-21 14:44:01 +0000 |
commit | 719dc37b22bd36f45a30516e17f21ce46305db84 (patch) | |
tree | 1ea5b0ee1f806372b86c64a71f0996ab565cee05 /windows | |
parent | af4d72416ba0d100f6500a99e4d79d47fedc5c25 (diff) | |
download | netsurf-719dc37b22bd36f45a30516e17f21ce46305db84.tar.gz netsurf-719dc37b22bd36f45a30516e17f21ce46305db84.tar.bz2 |
Fix obvious bug in nsfont_split.
Was using nsfont_position_in_string instead of nsfont_width, resulting
in returning nonsense actual_x and char_offset values.
Diffstat (limited to 'windows')
-rw-r--r-- | windows/font.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/windows/font.c b/windows/font.c index 7258eaf79..427bcb166 100644 --- a/windows/font.c +++ b/windows/font.c @@ -226,9 +226,8 @@ static bool nsfont_split(const plot_font_style_t *style, (*char_offset)++; } } - nsfont_position_in_string(style, string, *char_offset, x, char_offset, - actual_x); - return true; + + return nsfont_width(style, string, *char_offset, actual_x); } const struct font_functions nsfont = { |