e: defensive test, just in case the geometry is NULL.

SVN revision: 71231
This commit is contained in:
Cedric BAIL 2012-05-18 08:54:41 +00:00
parent d4ad6b0060
commit 5327abfc35
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ _e_wid_reconfigure(E_Widget_Data *wd)
evas_object_geometry_get(wd->obj, &px, &py, &pw, &ph);
if (ph == 0)
{
evas_object_resize(wd->child, 0, 0);
return ;
}
ap = (double)pw / ph;
ad = (double)(wd->aspect_w) / wd->aspect_h;
if (ap >= ad)