forked from enlightenment/efl
evas: prevent infinite insertion of object during recalc stage.
SVN revision: 61123
This commit is contained in:
parent
ba9e8ca113
commit
ecb025bdff
|
@ -578,8 +578,8 @@ evas_object_smart_calculate(Evas_Object *obj)
|
|||
if (!obj->smart.smart->smart_class->calculate)
|
||||
return;
|
||||
|
||||
o->need_recalculate = 0;
|
||||
obj->smart.smart->smart_class->calculate(obj);
|
||||
o->need_recalculate = 0;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
|
@ -619,8 +619,8 @@ evas_call_smarts_calculate(Evas *e)
|
|||
o = obj->object_data;
|
||||
if (o->need_recalculate)
|
||||
{
|
||||
o->need_recalculate = 0;
|
||||
obj->smart.smart->smart_class->calculate(obj);
|
||||
o->need_recalculate = 0;
|
||||
}
|
||||
}
|
||||
in_smart_calc--;
|
||||
|
|
Loading…
Reference in New Issue