evas/textblock - null check format.

logically it's insane that it doesn't check the null there but it checks right next line.
This commit is contained in:
ChunEon Park 2014-05-28 14:07:20 +09:00
parent 69cbfc7530
commit e973390f64
1 changed files with 5 additions and 2 deletions

View File

@ -10276,8 +10276,11 @@ _size_native_calc_line_finalize(const Evas_Object *eo_obj, Eina_List *items,
Evas_Coord asc = 0, desc = 0;
/* If there are no text items yet, calc ascent/descent
* according to the current format. */
_layout_item_ascent_descent_adjust(eo_obj, &asc, &desc,
it, it->format);
if (it->format)
{
_layout_item_ascent_descent_adjust(eo_obj, &asc, &desc,
it, it->format);
}
if (asc > *ascent)
*ascent = asc;