mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-26 11:24:57 +03:00
Fix error.
This commit is contained in:
parent
138d2529ef
commit
918aa9d266
@ -240,7 +240,6 @@ bool nsfont_split(const plot_font_style_t *fstyle,
|
||||
int x, size_t *char_offset, int *actual_x)
|
||||
{
|
||||
ULONG co;
|
||||
const char *str_pos = string;
|
||||
uint16 *utf16 = NULL,*outf16 = NULL;
|
||||
uint16 utf16next = 0;
|
||||
FIXED kern = 0;
|
||||
@ -295,7 +294,7 @@ bool nsfont_split(const plot_font_style_t *fstyle,
|
||||
/* Reached available width, and a space has been found; split there. */
|
||||
break;
|
||||
|
||||
} else if (*(string + str_pos) == ' ') {
|
||||
} else if (*(string + utf8_pos) == ' ') {
|
||||
*actual_x = tx;
|
||||
coffset = utf8_pos;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user