Recalculating actual position in string after text split.

svn path=/trunk/netsurf/; revision=11300
This commit is contained in:
Sven Weidauer 2011-01-12 23:21:36 +00:00
parent fce3238be0
commit 23e9ad14ab

View File

@ -84,6 +84,9 @@ static bool nsfont_split(const plot_font_style_t *style,
while ((string[*char_offset] != ' ') && (*char_offset > 0))
(*char_offset)--;
nsfont_position_in_string(style, string, *char_offset + 1, x, char_offset,
actual_x);
return true;
}