Fixed text splitting.

svn path=/trunk/netsurf/; revision=11904
This commit is contained in:
Sven Weidauer 2011-03-04 14:53:12 +00:00
parent 7473f1625f
commit d2626ece45

View File

@ -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;