summaryrefslogtreecommitdiff
path: root/cocoa
diff options
context:
space:
mode:
authorSven Weidauer <sven.weidauer@gmail.com>2011-01-12 23:21:36 +0000
committerSven Weidauer <sven.weidauer@gmail.com>2011-01-12 23:21:36 +0000
commit23e9ad14ab0ba7c0a80ceffedca60e384950c1e0 (patch)
treed4e1974e1a0c5040a2d80c033c41137deba6a9cc /cocoa
parentfce3238be069ec9e51806a054066c43e173d0d67 (diff)
downloadnetsurf-23e9ad14ab0ba7c0a80ceffedca60e384950c1e0.tar.gz
netsurf-23e9ad14ab0ba7c0a80ceffedca60e384950c1e0.tar.bz2
Recalculating actual position in string after text split.
svn path=/trunk/netsurf/; revision=11300
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/font.m3
1 files changed, 3 insertions, 0 deletions
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;
}