hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ea442da9eda4635a259be7e920a6febbb49c3bd8

commit ea442da9eda4635a259be7e920a6febbb49c3bd8
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Tue Sep 1 16:32:46 2015 +0900

    evas clip: add warning msg for wrong scenario.
---
 src/lib/evas/canvas/evas_clip.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/evas/canvas/evas_clip.c b/src/lib/evas/canvas/evas_clip.c
index e560a78..874beb8 100644
--- a/src/lib/evas/canvas/evas_clip.c
+++ b/src/lib/evas/canvas/evas_clip.c
@@ -289,6 +289,8 @@ _evas_object_clip_set(Eo *eo_obj, 
Evas_Object_Protected_Data *obj, Evas_Object *
              EINA_COW_STATE_WRITE_BEGIN(obj->cur->clipper, state_write, cur)
                {
                   state_write->have_clipees = 0;
+                  if (obj->cur->clipper->is_static_clip)
+                    WRN("You override static clipper, it may be dangled! 
obj(%p) type(%s) new clip(%p)", eo_obj, obj->type, eo_clip);
                }
              EINA_COW_STATE_WRITE_END(obj->cur->clipper, state_write, cur);
 /* i know this was to handle a case where a clip stops having children and

-- 


Reply via email to