From 8937fd4fc9946600d8b93f8d07c2a13094d102d7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Fri, 23 Oct 2015 16:29:40 +0900 Subject: [PATCH] Evas render: Fix rendering of snapshot objects I added a quick check that the clip was not 0x0 but forgot to check that we actually use the clip info. Fixes T2792 --- src/lib/evas/canvas/evas_object_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c index fdf31c7317..e174353030 100644 --- a/src/lib/evas/canvas/evas_object_image.c +++ b/src/lib/evas/canvas/evas_object_image.c @@ -3372,8 +3372,8 @@ _evas_image_render(Eo *eo_obj, Evas_Object_Protected_Data *obj, o->proxyrendering = EINA_FALSE; } - ENFN->context_clip_get(ENDT, context, NULL, NULL, &cw, &ch); - if (!cw || !ch) return; + if (ENFN->context_clip_get(ENDT, context, NULL, NULL, &cw, &ch) && (!cw || !ch)) + return; if (pixels) {