Evas font: Fix font run len calculation.
authorTom Hacohen <tom@stosb.com>
Mon, 20 Jun 2011 07:28:57 +0000 (07:28 +0000)
committerTom Hacohen <tom@stosb.com>
Mon, 20 Jun 2011 07:28:57 +0000 (07:28 +0000)
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

index 2d72105..5b097e0 100644 (file)
@@ -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)
           {