Enlightenment CVS committal
Author : jethomas
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_paned.c
Log Message:
Avoid possible endless loop.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_paned.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -3 -r1.64 -r1.65
--- ewl_paned.c 2 Jan 2008 06:25:49 -0000 1.64
+++ ewl_paned.c 5 Jan 2008 20:35:21 -0000 1.65
@@ -731,8 +731,11 @@
int give;
int i;
- /* if we have no panes we don't need to calc their place */
- if (cur_res < 1)
+ /* if we have no panes we don't need to calc their place,
+ * or, if cur_res is as low as it will get avoid endless
+ * loop
+ */
+ if ((cur_res < 1) || (cur_res == (resizable - pane_num)))
DRETURN(DLEVEL_STABLE);
/* give can also be negative, so see it as a can take or give */
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs