aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_layer.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2011-06-18 09:08:33 +0000
committerChunEon Park <hermet@hermet.pe.kr>2011-06-18 09:08:33 +0000
commit8a6f620675d3adafb4269b24973ce2e32a000151 (patch)
tree17e67e3df9fb05b826f86e8fe8673c40613af3ee /legacy/evas/src/lib/canvas/evas_layer.c
parent@since 1.1.0++ (diff)
downloadefl-8a6f620675d3adafb4269b24973ce2e32a000151.tar.gz
evas/evas_layer.c - added some missed exception handlings.
SVN revision: 60471
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_layer.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_layer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_layer.c b/legacy/evas/src/lib/canvas/evas_layer.c
index 076814c3f9..6c3fa0f73c 100644
--- a/legacy/evas/src/lib/canvas/evas_layer.c
+++ b/legacy/evas/src/lib/canvas/evas_layer.c
@@ -143,6 +143,7 @@ evas_object_layer_set(Evas_Object *obj, short l)
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
return;
MAGIC_CHECK_END();
+ if (obj->delete_me) return;
if (evas_object_intercept_call_layer_set(obj, l)) return;
if (obj->smart.parent) return;
if (obj->cur.layer == l)
@@ -150,6 +151,8 @@ evas_object_layer_set(Evas_Object *obj, short l)
evas_object_raise(obj);
return;
}
+ if (l < EVAS_LAYER_MIN) l = EVAS_LAYER_MIN;
+ else if (l > EVAS_LAYER_MAX) l = EVAS_LAYER_MAX;
e = obj->layer->evas;
evas_object_release(obj, 1);
obj->cur.layer = l;