Fixed drawing bug inside edit box for UTF text

This commit is contained in:
vurtun
2016-09-28 18:28:25 +02:00
parent f7a6efc3ca
commit 3977145137
+1 -1
View File
@@ -14325,7 +14325,7 @@ nk_do_edit(nk_flags *state, struct nk_command_buffer *out,
}}
} else {
/* not active so just draw text */
int l = nk_str_len(&edit->string);
int l = nk_str_len_char(&edit->string);
const char *begin = nk_str_get_const(&edit->string);
const struct nk_style_item *background;