elementary: Check for valid object before calling smart calculate

Summary:
Small patch fixes an issue where evas_object_smart_calculate was being
called with a NULL box.

ref T7030
Depends on D6704

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #committers, zmike

Tags: #efl

Maniphest Tasks: T7030

Differential Revision: https://phab.enlightenment.org/D6710
This commit is contained in:
Chris Michael 2018-07-31 17:23:46 -04:00 committed by Mike Blumenkrantz
parent 35622614d0
commit 2f9a65844e
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ _elm_panel_elm_layout_sizing_eval(Eo *obj, Elm_Panel_Data *sd)
{
Evas_Coord mw = 0, mh = 0;
EINA_SAFETY_ON_FALSE_RETURN(efl_finalized_get(obj));
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
if (sd->delete_me) return;