Enlightenment CVS committal

Author  : iamsthitha
Project : e_modules
Module  : taskbar

Dir     : e_modules/taskbar


Modified Files:
        e_mod_main.c 


Log Message:
Fix a little divide by 0 segfault

===================================================================
RCS file: /cvs/e/e_modules/taskbar/e_mod_main.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- e_mod_main.c        7 Aug 2006 21:38:47 -0000       1.14
+++ e_mod_main.c        9 Aug 2006 05:54:14 -0000       1.15
@@ -448,11 +448,15 @@
    ic = b->icons->data;
    wnum = evas_list_count(b->borders);
    edje_object_size_min_calc(ic->o_holder, &wmin, &hmin);
+   if (wmin < 1)
+     wmin = 1;
    wnum2 = w / wmin;
    if (wnum < wnum2)
      wnum2 = wnum;
    if (wnum2 < 1)
      wnum2 = 1;
+   if (hmin < 1)
+     hmin = 1;
    hnum = h / hmin;
    if (hnum < 1)
      hnum = 1;



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to