popup: Avoid error messages on NULL

Those were spotted in ephoto (with no config, first run).
This commit is contained in:
Jean-Philippe Andre 2017-08-21 14:06:15 +09:00
parent 6226e88b6e
commit 7270a98d8c
1 changed files with 6 additions and 4 deletions

View File

@ -496,10 +496,12 @@ _elm_popup_elm_layout_sizing_eval(Eo *obj, Elm_Popup_Data *sd)
return;
}
edje_object_size_min_calc(elm_layout_edje_get(sd->main_layout), &minw, &minh);
evas_object_size_hint_min_set(obj, minw, minh);
evas_object_size_hint_max_set(obj, -1, -1);
if (sd->main_layout)
{
edje_object_size_min_calc(elm_layout_edje_get(sd->main_layout), &minw, &minh);
evas_object_size_hint_min_set(obj, minw, minh);
evas_object_size_hint_max_set(obj, -1, -1);
}
}
EOLIAN static void