Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_border.c
Log Message:
crash fix
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- e_border.c 9 Dec 2004 13:56:06 -0000 1.14
+++ e_border.c 10 Dec 2004 03:32:35 -0000 1.15
@@ -1575,8 +1575,15 @@
int new_x, new_y;
printf("AUTO POS!\n");
- new_x = rand() % (bd->container->w - bd->w);
- new_y = rand() % (bd->container->h - bd->h);
+ if (bd->container->w > bd->w)
+ new_x = rand() % (bd->container->w - bd->w);
+ else
+ new_x = 0;
+ if (bd->container->h > bd->h)
+ new_y = rand() % (bd->container->h - bd->h);
+ else
+ new_y = 0;
+
skiplist = evas_list_append(skiplist, bd);
e_place_container_region_smart(bd->container, skiplist,
bd->x, bd->y, bd->w, bd->h,
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs