Evas font-engine: Fixed a bug in evas_common_language_script_end_of_run_get

SVN revision: 56476
This commit is contained in:
Tom Hacohen 2011-01-30 10:38:50 +00:00
parent 400fba721e
commit 32f98dcb7b
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ evas_common_language_script_end_of_run_get(const Eina_Unicode *str,
{
Evas_Script_Type first = EVAS_SCRIPT_UNKNOWN;
int i;
for (i = 0 ; (i < len) ; i++, str++)
for (i = start, str += start ; (i < len) ; i++, str++)
{
Evas_Script_Type tmp;
tmp = _get_script(*str);
@ -75,6 +75,7 @@ evas_common_language_script_end_of_run_get(const Eina_Unicode *str,
break;
}
}
i = i - start;
#ifdef BIDI_SUPPORT
{
int bidi_end;