From: Cedric BAIL Date: Thu, 7 Jul 2011 15:24:16 +0000 (+0000) Subject: evas: prevent infinite insertion of object during recalc stage. X-Git-Tag: submit/devel/efl/20131022.203902~8965 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecb025bdff25331d3fa7596f481a2dce2979c40f;p=platform%2Fupstream%2Fefl.git evas: prevent infinite insertion of object during recalc stage. SVN revision: 61123 --- diff --git a/legacy/evas/src/lib/canvas/evas_object_smart.c b/legacy/evas/src/lib/canvas/evas_object_smart.c index e1e8cf0..9058e91 100644 --- a/legacy/evas/src/lib/canvas/evas_object_smart.c +++ b/legacy/evas/src/lib/canvas/evas_object_smart.c @@ -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--;