Evas textblock: Eliminate the use of cutoff, we don't really want/need that.

SVN revision: 56545
This commit is contained in:
Tom Hacohen 2011-01-30 10:46:02 +00:00
parent 198da9e2af
commit 3999767698
1 changed files with 6 additions and 21 deletions

View File

@ -2422,26 +2422,6 @@ _layout_text_cutoff_get(Ctxt *c, Evas_Object_Textblock_Format *fmt,
return -1;
}
/**
* @internal
* Cut the text in the item up until cut.
*
* @param c the context to work on - Not NULL.
* @param it the item to cut - not null.
* @param cut the cut index.
*/
static void
_layout_item_text_cutoff(Ctxt *c __UNUSED__, Evas_Object_Textblock_Text_Item *ti, int cut)
{
Eina_Unicode *ts;
ts = ti->text;
ts[cut] = 0;
ti->text = eina_unicode_strdup(ts);
free(ts);
evas_common_text_props_cutoff(&ti->parent.text_props, cut);
}
/**
* @internal
* Cut the text up until cut and split
@ -2785,7 +2765,12 @@ skip:
ti->parent.text_pos, tmp_len);
if (tmp_cut > 0)
{
_layout_item_text_cutoff(c, ti, tmp_cut);
Eina_Unicode *ts;
ts = ti->text;
ts[tmp_cut] = 0;
ti->text = eina_unicode_strdup(ts);
free(ts);
tmp_len = tmp_cut;
}
evas_common_text_props_bidi_set(&ti->parent.text_props,