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,11 +496,13 @@ _elm_popup_elm_layout_sizing_eval(Eo *obj, Elm_Popup_Data *sd)
return;
}
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
_elm_popup_efl_canvas_layout_signal_signal_emit(Eo *obj EINA_UNUSED, Elm_Popup_Data *sd, const char *emission, const char *source)