From 23e9ad14ab0ba7c0a80ceffedca60e384950c1e0 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Wed, 12 Jan 2011 23:21:36 +0000 Subject: [PATCH] Recalculating actual position in string after text split. svn path=/trunk/netsurf/; revision=11300 --- cocoa/font.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocoa/font.m b/cocoa/font.m index 634bbb7c5..0b78c4d80 100644 --- a/cocoa/font.m +++ b/cocoa/font.m @@ -84,6 +84,9 @@ static bool nsfont_split(const plot_font_style_t *style, while ((string[*char_offset] != ' ') && (*char_offset > 0)) (*char_offset)--; + nsfont_position_in_string(style, string, *char_offset + 1, x, char_offset, + actual_x); + return true; }