From: Mike Blumenkrantz Date: Thu, 13 Mar 2014 15:41:17 +0000 (-0400) Subject: fix probably-impossible divide-by-zero in menu item layout X-Git-Tag: upstream/0.19.99~1370 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8a3e1ed4fdb565e4a134ded60cc9b7bd08b198d;p=platform%2Fupstream%2Fenlightenment.git fix probably-impossible divide-by-zero in menu item layout CID 1187924 --- diff --git a/src/bin/e_menu.c b/src/bin/e_menu.c index 4eed69b..99a3a6e 100644 --- a/src/bin/e_menu.c +++ b/src/bin/e_menu.c @@ -1718,7 +1718,7 @@ _e_menu_items_layout_update(E_Menu *m) int min_label_w = 0, min_label_h = 0; int min_submenu_w = 0, min_submenu_h = 0; int min_toggle_w = 0, min_toggle_h = 0; - int min_w = 0, min_h = 0; + int min_w = 0, min_h = 1; int zh = 0, ms = 0, maxh = 0; unsigned int cur_items = 0, max_items = -1;