Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/data


Modified Files:
        evas_list.c 


Log Message:
Fix evas_list_promote_list to allow promoting to arbitrary points in the list.

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/data/evas_list.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- evas_list.c 4 Aug 2006 10:00:49 -0000       1.25
+++ evas_list.c 4 Aug 2006 10:47:06 -0000       1.26
@@ -449,7 +449,10 @@
      return_l = move_list->next;
    if (move_list == ((Evas_List_Accounting *)(list->accounting))->last)
      ((Evas_List_Accounting *)(list->accounting))->last = move_list->prev;
-   move_list->prev = NULL;
+   move_list->prev = return_l->prev;
+   if (return_l->prev)
+     return_l->prev->next = move_list;
+   return_l->prev = move_list;
    move_list->next = return_l;
    return move_list;
 }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to