From cfe46c2c402033a844077d0bbea3ea2427b046e8 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 19 Apr 2013 10:03:42 +0100 Subject: [PATCH] make comp mirror safety check useful --- src/bin/e_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c index 97d481f0c..e4617a3b4 100644 --- a/src/bin/e_comp.c +++ b/src/bin/e_comp.c @@ -1909,7 +1909,7 @@ _e_comp_win_mirror_add(E_Comp_Win *cw) Evas_Object *o; int w, h; - if (!cw->c) return NULL; + EINA_SAFETY_ON_TRUE_RETURN_VAL(((!cw->pixmap) || (!cw->pw) || (!cw->ph)) && (!cw->real_obj), NULL); o = evas_object_image_filled_add(cw->c->evas); evas_object_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888);