e-modules/comp-scale: fix segv

SVN revision: 57906
This commit is contained in:
Hannes Janetzek 2011-03-20 02:14:38 +00:00
parent 7796f319d1
commit b7d844eb89
1 changed files with 7 additions and 1 deletions

View File

@ -1873,6 +1873,9 @@ _scale_place_slotted()
EINA_LIST_FOREACH(slots, ll, slot2)
{
if (!slot2->it)
continue;
if (slot == slot2)
continue;
@ -1880,7 +1883,10 @@ _scale_place_slotted()
continue;
if (_slot_dist(slot->it, slot) > _slot_dist(slot2->it, slot2))
slot->it = NULL;
{
slot->it = NULL;
break;
}
else
slot2->it = NULL;
}