diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-03-04 14:53:12 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-03-04 14:53:12 +0000 |
commit | d2626ece458fe70f6492ef056e0bff471e335840 (patch) | |
tree | dcc382d4c1a555cd551532d0c5574ba1eaeee6fd | |
parent | 7473f1625fc4c43f978c2b600ae5c31cf281afd7 (diff) | |
download | netsurf-d2626ece458fe70f6492ef056e0bff471e335840.tar.gz netsurf-d2626ece458fe70f6492ef056e0bff471e335840.tar.bz2 |
Fixed text splitting.
svn path=/trunk/netsurf/; revision=11904
-rw-r--r-- | cocoa/font.m | 2 |
1 files changed, 1 insertions, 1 deletions
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; |