From: Tom Hacohen Date: Mon, 20 Jun 2011 07:28:57 +0000 (+0000) Subject: Evas font: Fix font run len calculation. X-Git-Tag: submit/devel/efl/20131022.203902~9181 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0ca25ea91f3cd74b9c3fb56e0428636e12276a0;p=platform%2Fupstream%2Fefl.git Evas font: Fix font run len calculation. Co-fixed with MJ :P. Thanks a lot for your report + help. SVN revision: 60508 --- diff --git a/legacy/evas/src/lib/engines/common/evas_font_query.c b/legacy/evas/src/lib/engines/common/evas_font_query.c index 2d72105..5b097e0 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_query.c +++ b/legacy/evas/src/lib/engines/common/evas_font_query.c @@ -91,6 +91,10 @@ evas_common_font_query_run_font_end_get(RGBA_Font *fn, RGBA_Font_Int **script_fi } } + /* Abort if we reached the end */ + if (itr == run_end) + break; + /* If the script font doesn't fit even one char, find a new font. */ if (itr == text) {