found divide by 0 in some circumstances -> fix.

SVN revision: 44932
This commit is contained in:
Carsten Haitzler 2010-01-06 22:54:51 +00:00
parent b4c473c21a
commit ff86d27663
1 changed files with 3 additions and 1 deletions

View File

@ -2676,7 +2676,9 @@ evas_object_image_render_pre(Evas_Object *obj)
if ((o->cur.border.l == 0) &&
(o->cur.border.r == 0) &&
(o->cur.border.t == 0) &&
(o->cur.border.b == 0))
(o->cur.border.b == 0) &&
(o->cur.image.w > 0) &&
(o->cur.image.h > 0))
{
Eina_Rectangle *rr;