forked from enlightenment/efl
Fix some non-NULL check issues in evas_clip.c . Don't ask how I found these :)
SVN revision: 25637
This commit is contained in:
parent
54c1f3e1ee
commit
d24318ed7f
|
@ -281,9 +281,14 @@ evas_object_clip_unset(Evas_Object *obj)
|
|||
if (obj->smart.smart->smart_class->clip_unset)
|
||||
obj->smart.smart->smart_class->clip_unset(obj);
|
||||
}
|
||||
obj->cur.clipper->clip.clipees = evas_list_remove(obj->cur.clipper->clip.clipees, obj);
|
||||
if (!obj->cur.clipper->clip.clipees) obj->cur.clipper->cur.have_clipees = 0;
|
||||
evas_object_change(obj->cur.clipper);
|
||||
if (obj->cur.clipper)
|
||||
{
|
||||
if (!obj->cur.clipper->clip.clipees)
|
||||
obj->cur.clipper->cur.have_clipees = 0;
|
||||
else
|
||||
obj->cur.clipper->clip.clipees = evas_list_remove(obj->cur.clipper->clip.clipees, obj);
|
||||
evas_object_change(obj->cur.clipper);
|
||||
}
|
||||
obj->cur.clipper = NULL;
|
||||
evas_object_change(obj);
|
||||
evas_object_clip_dirty(obj);
|
||||
|
|
Loading…
Reference in New Issue