summaryrefslogtreecommitdiff
path: root/cocoa
diff options
context:
space:
mode:
authorSven Weidauer <sven.weidauer@gmail.com>2011-03-04 14:53:12 +0000
committerSven Weidauer <sven.weidauer@gmail.com>2011-03-04 14:53:12 +0000
commitd2626ece458fe70f6492ef056e0bff471e335840 (patch)
treedcc382d4c1a555cd551532d0c5574ba1eaeee6fd /cocoa
parent7473f1625fc4c43f978c2b600ae5c31cf281afd7 (diff)
downloadnetsurf-d2626ece458fe70f6492ef056e0bff471e335840.tar.gz
netsurf-d2626ece458fe70f6492ef056e0bff471e335840.tar.bz2
Fixed text splitting.
svn path=/trunk/netsurf/; revision=11904
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/font.m2
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;