discomfitor pushed a commit to branch master.
commit cfe46c2c402033a844077d0bbea3ea2427b046e8
Author: Mike Blumenkrantz <[email protected]>
Date: Fri Apr 19 10:03:42 2013 +0100
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 97d481f..e4617a3 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);
--
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter