From cd39a46097ca61d18dccfc36df1dfe9d6ed2fe0a Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Thu, 19 Jul 2018 21:58:06 +0800 Subject: [PATCH] fix(textlayer): isalpha() assertion failed --- src/font/textlayer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/font/textlayer.c b/src/font/textlayer.c index 64f51d2b..e093eace 100644 --- a/src/font/textlayer.c +++ b/src/font/textlayer.c @@ -29,7 +29,7 @@ */ #include -#include +#include #include #include #include @@ -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; } /* 累加行宽度 */