From d2626ece458fe70f6492ef056e0bff471e335840 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Fri, 4 Mar 2011 14:53:12 +0000 Subject: Fixed text splitting. svn path=/trunk/netsurf/; revision=11904 --- cocoa/font.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa/font.m') diff --git a/cocoa/font.m b/cocoa/font.m index 5241a7a1c..1b06d3dc7 100644 --- a/cocoa/font.m +++ b/cocoa/font.m @@ -85,7 +85,7 @@ static bool nsfont_split(const plot_font_style_t *style, } - chars = [[cocoa_text_storage string] rangeOfString: @" " options: NSBackwardsSearch range: NSMakeRange( 0, chars )].location; + chars = [[cocoa_text_storage string] rangeOfString: @" " options: NSBackwardsSearch range: NSMakeRange( 0, chars + 1 )].location; if (chars == NSNotFound) { *char_offset = 0; *actual_x = 0; -- cgit v1.2.3