Fix evas_list_promote_list to allow promoting to arbitrary points in the list.

SVN revision: 24388
This commit is contained in:
ningerso 2006-08-04 10:47:06 +00:00 committed by ningerso
parent d85048c93f
commit 470d2eda32
1 changed files with 4 additions and 1 deletions

View File

@ -449,7 +449,10 @@ evas_list_promote_list(Evas_List *list, Evas_List *move_list)
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;
}