diff --git a/clutter/cally/cally-actor.c b/clutter/cally/cally-actor.c index 72babdbfc..81c94bc69 100644 --- a/clutter/cally/cally-actor.c +++ b/clutter/cally/cally-actor.c @@ -668,6 +668,7 @@ cally_actor_get_extents (AtkComponent *component, gint top_level_x, top_level_y; gfloat f_width, f_height; ClutterVertex verts[4]; + ClutterActor *stage = NULL; g_return_if_fail (CALLY_IS_ACTOR (component)); @@ -677,6 +678,12 @@ cally_actor_get_extents (AtkComponent *component, if (actor == NULL) /* actor is defunct */ return; + /* If the actor is not placed in any stage, we can't compute the + * extents */ + stage = clutter_actor_get_stage (actor); + if (stage == NULL) + return; + clutter_actor_get_abs_allocation_vertices (actor, verts); clutter_actor_get_transformed_size (actor, &f_width, &f_height);