while (str && *str)
{
/* if this is the first line item and it starts with spaces - remove them */
- int tmp_len = 0;
+ int tmp_len;
wrap = 0;
white_stripped = 0;
ti = _layout_text_item_new(c, fmt, str);
ti->parent.text_node = n;
ti->parent.text_pos = start + str - tbase;
- tmp_len = eina_unicode_strlen(ti->text);
+ tmp_len = off - (str - tbase);
if (ti->parent.text_node)
{
int tmp_cut;
{
Evas_Script_Type first = EVAS_SCRIPT_UNKNOWN;
int i;
- for (i = start, str += start ; (i < len) ; i++, str++)
+ for (i = 0 ; i < len ; i++, str++)
{
Evas_Script_Type tmp;
tmp = _get_script(*str);
break;
}
}
- i = i - start;
#ifdef BIDI_SUPPORT
{
int bidi_end;
- bidi_end = evas_bidi_end_of_run_get(bidi_props, start, len);
+ bidi_end = evas_bidi_end_of_run_get(bidi_props, start,
+ start + len);
if (bidi_end > 0)
{
i = (i < bidi_end) ? i : bidi_end;
else
{
#ifdef BIDI_SUPPORT
- return evas_bidi_end_of_run_get(bidi_props, start, len);
+ return evas_bidi_end_of_run_get(bidi_props, start, start + len);
#endif
}
return 0;