prevent divide by zero when calculating gadget aspect sizing

This commit is contained in:
Mike Blumenkrantz 2016-11-28 10:39:28 -05:00
parent 76d787b7c9
commit b133dbd35d
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ _site_gadget_resize(Evas_Object *g, int w, int h, Evas_Coord *ww, Evas_Coord *hh
*ww = (*hh * ax / ay); *ww = (*hh * ax / ay);
else if (IS_VERT(zgc->site->orient)) else if (IS_VERT(zgc->site->orient))
*hh = (*ww * ay / ax); *hh = (*ww * ay / ax);
else else if (aspect)
{ {
double ar = ax / (double) ay; double ar = ax / (double) ay;