Evas textblock: Don't create text props if there's no font.

Thanks to Nash for letting me know about it. It's not really useful,
but at least it helps us avoid crashing.

SVN revision: 57984
This commit is contained in:
Tom Hacohen 2011-03-22 10:18:46 +00:00
parent e0ff04b83e
commit c116d8cc31
1 changed files with 8 additions and 5 deletions

View File

@ -2808,11 +2808,14 @@ skip:
ti->parent.text_node->bidi_props, ti->parent.text_pos);
evas_common_text_props_script_set (&ti->text_props,
ti->text);
c->ENFN->font_text_props_info_create(c->ENDT,
ti->parent.format->font.font,
ti->text, &ti->text_props,
ti->parent.text_node->bidi_props,
ti->parent.text_pos, tmp_len);
if (ti->parent.format->font.font)
{
c->ENFN->font_text_props_info_create(c->ENDT,
ti->parent.format->font.font,
ti->text, &ti->text_props,
ti->parent.text_node->bidi_props,
ti->parent.text_pos, tmp_len);
}
}
str += tmp_len;
cur_len -= tmp_len;