mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-24 03:12:05 +03:00
Fixed text splitting.
svn path=/trunk/netsurf/; revision=11904
This commit is contained in:
parent
7473f1625f
commit
d2626ece45
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user