elementary: fix promote on first item and demote on last item of a genlist

SVN revision: 78375
This commit is contained in:
Michael BOUCHAUD 2012-10-23 15:13:09 +00:00
parent 8ef6ac7f41
commit e451522ac3
1 changed files with 2 additions and 0 deletions

View File

@ -3723,6 +3723,7 @@ _item_move_after(Elm_Gen_Item *it,
{
if (!it) return;
if (!after) return;
if (it == after) return;
GL_IT(it)->wsd->items =
eina_inlist_remove(GL_IT(it)->wsd->items, EINA_INLIST_GET(it));
@ -3747,6 +3748,7 @@ _item_move_before(Elm_Gen_Item *it,
{
if (!it) return;
if (!before) return;
if (it == before) return;
GL_IT(it)->wsd->items =
eina_inlist_remove(GL_IT(it)->wsd->items, EINA_INLIST_GET(it));