From: <enl...@li...> - 2006-02-08 05:02:31
|
Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/lib Modified Files: ewl_container.c Log Message: - only get the index if the child is found =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_container.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -3 -r1.31 -r1.32 --- ewl_container.c 8 Feb 2006 04:52:52 -0000 1.31 +++ ewl_container.c 8 Feb 2006 05:02:25 -0000 1.32 @@ -372,7 +372,6 @@ * Traverse the list to the child. */ temp = ecore_list_goto(pc->children, child); - idx = ecore_list_index(pc->children); /* * If the child isn't found, then this isn't it's parent. @@ -381,6 +380,9 @@ DRETURN(DLEVEL_STABLE); } + /* get the index of the widget we are removing */ + idx = ecore_list_index(pc->children); + /* * Remove the child from the parent and set the childs parent to NULL */ |