avoid multiple use of one picture when selecting in historic list

SVN revision: 23844
This commit is contained in:
kiwi 2006-07-11 07:01:11 +00:00 committed by kiwi
parent f149741576
commit 993aa12b45
1 changed files with 8 additions and 2 deletions

View File

@ -82,8 +82,14 @@ Picture *photo_picture_histo_change(Photo_Item *pi, int offset)
picture = evas_list_nth(pi->histo.list, new_pos);
if (picture)
pi->histo.pos = new_pos;
else
{
if (!picture->pi && !picture->delete_me)
pi->histo.pos = new_pos;
else
picture = NULL;
}
if (!picture)
DPIC(("HISTO change FAILED !!"));
return picture;