forked from enlightenment/efl
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:
parent
69cbfc7530
commit
e973390f64
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue