Thanks, applied with one minor sanity check added.

On 6/30/05, enlightenment-cvs@lists.sourceforge.net
<enlightenment-cvs@lists.sourceforge.net> wrote:
> Enlightenment CVS committal
> 
> Author  : rbdpngn
> Project : e17
> Module  : libs/ecore
> 
> Dir     : e17/libs/ecore/src/lib/ecore
> 
> 
> Modified Files:
>         ecore_list.c
> 
> 
> Log Message:
> Patch to fix ecore_dlist indices from Dylan Shell.
> 
> ===================================================================
> RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_list.c,v
> retrieving revision 1.13
> retrieving revision 1.14
> diff -u -3 -r1.13 -r1.14
> --- ecore_list.c        4 Jan 2005 22:45:05 -0000       1.13
> +++ ecore_list.c        30 Jun 2005 15:45:46 -0000      1.14
> @@ -369,6 +369,7 @@
>         if (list->first == NULL) {
>                 list->first = end;
>                 list->index = 0;
> +               list->current = NULL;
>         }
> 
>         list->nodes++;
> @@ -1322,10 +1323,10 @@
>         if (ecore_list_is_empty(ECORE_LIST(list)))
>                 return FALSE;
> 
> -       if (index > ecore_list_nodes(ECORE_LIST(list)) || index < 1)
> +       if (index > ecore_list_nodes(ECORE_LIST(list)) || index < 0)
>                 return FALSE;
> 
> -       if (ECORE_LIST(list)->index > ECORE_LIST(list)->nodes)
> +       if (ECORE_LIST(list)->index >= ECORE_LIST(list)->nodes)
>                 _ecore_list_goto_last(ECORE_LIST(list));
> 
>         if (index < ECORE_LIST(list)->index)
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> enlightenment-cvs mailing list
> enlightenment-cvs@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
>


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to