Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/canvas


Modified Files:
        evas_clip.c 


Log Message:
Fix some non-NULL check issues in evas_clip.c . Don't ask how I found these :)

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_clip.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- evas_clip.c 6 Jan 2006 23:05:17 -0000       1.23
+++ evas_clip.c 8 Sep 2006 17:59:19 -0000       1.24
@@ -281,9 +281,14 @@
        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);



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to