Evas textblock: Added a segfault fix in case (shouldn't happen) it isn't found.

SVN revision: 56410
This commit is contained in:
Tom Hacohen 2011-01-30 10:31:45 +00:00
parent 4dede084eb
commit 53123a7445
1 changed files with 4 additions and 0 deletions

View File

@ -6853,6 +6853,10 @@ evas_textblock_cursor_char_geometry_get(const Evas_Textblock_Cursor *cur, Evas_C
if (!o->formatted.valid) _relayout(cur->obj);
previous_format = _find_layout_item_match(cur, &ln, &it);
if (!it)
{
return -1;
}
if (it->type == EVAS_TEXTBLOCK_ITEM_TEXT)
{
ti = _ITEM_TEXT(it);