forked from enlightenment/enlightenment
prevent divide by zero when calculating gadget aspect sizing
This commit is contained in:
parent
76d787b7c9
commit
b133dbd35d
|
@ -429,7 +429,7 @@ _site_gadget_resize(Evas_Object *g, int w, int h, Evas_Coord *ww, Evas_Coord *hh
|
|||
*ww = (*hh * ax / ay);
|
||||
else if (IS_VERT(zgc->site->orient))
|
||||
*hh = (*ww * ay / ax);
|
||||
else
|
||||
else if (aspect)
|
||||
{
|
||||
double ar = ax / (double) ay;
|
||||
|
||||
|
|
Loading…
Reference in New Issue