forked from enlightenment/enlightenment
e: defensive test, just in case the geometry is NULL.
SVN revision: 71231
This commit is contained in:
parent
d4ad6b0060
commit
5327abfc35
|
@ -34,6 +34,12 @@ _e_wid_reconfigure(E_Widget_Data *wd)
|
||||||
|
|
||||||
evas_object_geometry_get(wd->obj, &px, &py, &pw, &ph);
|
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;
|
ap = (double)pw / ph;
|
||||||
ad = (double)(wd->aspect_w) / wd->aspect_h;
|
ad = (double)(wd->aspect_w) / wd->aspect_h;
|
||||||
if (ap >= ad)
|
if (ap >= ad)
|
||||||
|
|
Loading…
Reference in New Issue