summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/canvas/evas_layer.c
diff options
context:
space:
mode:
authorBrett Nash <nash@nash.id.au>2007-12-12 23:52:18 +0000
committerBrett Nash <nash@nash.id.au>2007-12-12 23:52:18 +0000
commitf30bb5ed4afe6c638a06dcc35b56cdf29b0c8a7c (patch)
treee795a7f400efb0c3970c0fa6f945d143e9021150 /legacy/evas/src/lib/canvas/evas_layer.c
parentadaa5103981ac06f1b24f4a5d2689b645b0cb9dc (diff)
Make layer get work correctly for smart members.
Currently works fine until you change the smart objects layer. SVN revision: 33117
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_layer.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_layer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_layer.c b/legacy/evas/src/lib/canvas/evas_layer.c
index 6dc5e28..d6cc14e 100644
--- a/legacy/evas/src/lib/canvas/evas_layer.c
+++ b/legacy/evas/src/lib/canvas/evas_layer.c
@@ -193,5 +193,9 @@ evas_object_layer_get(Evas_Object *obj)
193 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); 193 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
194 return 0; 194 return 0;
195 MAGIC_CHECK_END(); 195 MAGIC_CHECK_END();
196 if (obj->smart.parent)
197 {
198 return obj->smart.parent->cur.layer;
199 }
196 return obj->cur.layer; 200 return obj->cur.layer;
197} 201}