Enlightenment CVS committal Author : moom Project : e17 Module : proto
Dir : e17/proto/etk/src/lib Modified Files: etk_image.c Log Message: * [Etk_Image]Fix the size_allocate() function when the "keep_aspect" property is enabled and when the image is an edje image. =================================================================== RCS file: /cvs/e/e17/proto/etk/src/lib/etk_image.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- etk_image.c 14 May 2006 21:29:22 -0000 1.19 +++ etk_image.c 20 May 2006 10:16:03 -0000 1.20 @@ -523,6 +523,11 @@ edje_object_size_min_get(image->image_object, &image_w, &image_h); else evas_object_image_size_get(image->image_object, &image_w, &image_h); + if (image_w <= 0 || image_h <= 0) + { + image_w = 1; + image_h = 1; + } aspect_ratio = (double)image_w / (double)image_h; if (geometry.h * aspect_ratio > geometry.w) ------------------------------------------------------- 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