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

SVN revision: 71231
devs/princeamd/enlightenment-0.17-elive
Cedric BAIL 11 years ago
parent d4ad6b0060
commit 5327abfc35
  1. 6
      src/bin/e_widget_aspect.c

@ -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)

Loading…
Cancel
Save