From c0ca25ea91f3cd74b9c3fb56e0428636e12276a0 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 20 Jun 2011 07:28:57 +0000 Subject: [PATCH] Evas font: Fix font run len calculation. Co-fixed with MJ :P. Thanks a lot for your report + help. SVN revision: 60508 --- legacy/evas/src/lib/engines/common/evas_font_query.c | 4 ++++ 1 file changed, 4 insertions(+) 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 2d72105114..5b097e0da5 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) {