summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-11-28 10:39:28 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-28 10:59:48 -0500
commit1e85ec41749903eb38817dbb0977dd6435008369 (patch)
treeb40cfa3e9cea00a28304ca5cfe5389cc5c1796cf
parente6efe4522718701cb2622c2402e7a7131e9ebc32 (diff)
prevent divide by zero when calculating gadget aspect sizing
-rw-r--r--src/bin/e_gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index 54b36ae92..5f980c4f6 100644
--- a/src/bin/e_gadget.c
+++ b/src/bin/e_gadget.c
@@ -395,7 +395,7 @@ _site_gadget_resize(Evas_Object *g, int w, int h, Evas_Coord *ww, Evas_Coord *hh
395 *ww = (*hh * ax / ay); 395 *ww = (*hh * ax / ay);
396 else if (IS_VERT(zgc->site->orient)) 396 else if (IS_VERT(zgc->site->orient))
397 *hh = (*ww * ay / ax); 397 *hh = (*ww * ay / ax);
398 else 398 else if (aspect)
399 { 399 {
400 double ar = ax / (double) ay; 400 double ar = ax / (double) ay;
401 401