forked from enlightenment/efl
evas textblock - fix inconsistent ascent/descent return ptr checks
ascent/descent are always non-null in usage of _layout_item_ascent_descent_adjust() so don't check for them. fix CID 1099704
This commit is contained in:
parent
4124ed6946
commit
27ae94596f
|
@ -2627,10 +2627,8 @@ _layout_item_ascent_descent_adjust(const Evas_Object *eo_obj,
|
|||
}
|
||||
}
|
||||
|
||||
if (ascent && (asc > *ascent))
|
||||
*ascent = asc;
|
||||
if (descent && (desc > *descent))
|
||||
*descent = desc;
|
||||
if (asc > *ascent) *ascent = asc;
|
||||
if (desc > *descent) *descent = desc;
|
||||
|
||||
if (fmt) _layout_format_ascent_descent_adjust(eo_obj, ascent, descent, fmt);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue