From c789de4544fa98cbb8718be5adf9ee14feab14e8 Mon Sep 17 00:00:00 2001 From: tasn Date: Thu, 2 Jun 2011 14:31:15 +0000 Subject: [PATCH] Evas textblock: Fix skipping of ascii control chars. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@59900 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_font_query.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/engines/common/evas_font_query.c b/src/lib/engines/common/evas_font_query.c index fa945cf..8d92e63 100644 --- a/src/lib/engines/common/evas_font_query.c +++ b/src/lib/engines/common/evas_font_query.c @@ -70,6 +70,10 @@ evas_common_font_query_run_font_end_get(RGBA_Font *fn, RGBA_Font_Int **script_fi /* Itr will end up being the first of the next run */ for ( ; itr < run_end ; itr++) { + /* 0x1F is the last ASCII contral char, just a hack in + * the meanwhile. */ + if (*itr <= 0x1F) + continue; /* Break if either it's not in the font, or if it is in the * script's font. */ if (fi == *script_fi) -- 2.7.4