elm entry: check for null return from eina_rectangle_new

this will handle if eina_rectangle_new can't allocate a rect
(basically never will happen...)

@fix
This commit is contained in:
Carsten Haitzler 2016-01-11 16:42:05 +09:00
parent d210efee2e
commit 7c71cf6d59
1 changed files with 1 additions and 0 deletions

View File

@ -428,6 +428,7 @@ _viewport_region_get(Evas_Object *obj)
Eina_Rectangle *rect = eina_rectangle_new(0, 0, 0, 0);
Evas_Object *parent;
if (!rect) return NULL;
if (sd->scroll)
eo_do(obj, elm_interface_scrollable_content_viewport_geometry_get
(&rect->x, &rect->y, &rect->w, &rect->h));