fix(textlayer): isalpha() assertion failed

This commit is contained in:
Liu Chao
2018-07-19 23:15:45 +08:00
parent c15cfc9161
commit cd39a46097
+2 -2
View File
@@ -29,7 +29,7 @@
*/
#include <stdlib.h>
#include <ctype.h>
#include <wctype.h>
#include <LCUI_Build.h>
#include <LCUI/LCUI.h>
#include <LCUI/graph.h>
@@ -625,7 +625,7 @@ static void TextLayer_TextRowTypeset(LCUI_TextLayer layer, int row)
if (!txtchar->bitmap) {
continue;
}
if (!isalpha(txtchar->code)) {
if (!iswalpha(txtchar->code)) {
word_col = col + 1;
}
/* 累加行宽度 */