Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/lib Modified Files: edje_calc.c Log Message: dont SIGFPE =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_calc.c,v retrieving revision 1.58 retrieving revision 1.59 diff -u -3 -r1.58 -r1.59 --- edje_calc.c 11 Dec 2004 19:24:53 -0000 1.58 +++ edje_calc.c 7 Jan 2005 08:35:27 -0000 1.59 @@ -648,6 +648,7 @@ else if (ep->part->dragable.count_x > 0) { step = (confine_to->w - params->w) / ep->part->dragable.count_x; + if (step < 1) step = 1; params->x = confine_to->x + ((offset / step) * step); } @@ -669,6 +670,7 @@ else if (ep->part->dragable.count_y > 0) { step = (confine_to->h - params->h) / ep->part->dragable.count_y; + if (step < 1) step = 1; params->y = confine_to->y + ((offset / step) * step); } ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs