From 119a25269e36513d0f759f720789a61ec9986a5f Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 12 Apr 2012 17:07:06 +0100 Subject: [PATCH] actor: Check for mapped children in the default get_paint_volume() Unmapped children won't be painted so they should not contribute to the default paint volume computation. --- clutter/clutter-actor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index bb2ec114c..5ac481431 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -5207,6 +5207,9 @@ clutter_actor_update_default_paint_volume (ClutterActor *self, { const ClutterPaintVolume *child_volume; + if (!CLUTTER_ACTOR_IS_MAPPED (child)) + continue; + child_volume = clutter_actor_get_transformed_paint_volume (child, self); if (child_volume == NULL) {