Commit 8089af3c authored by Owen W. Taylor's avatar Owen W. Taylor Committed by Emmanuele Bassi

ClutterClone: Handle clone_source == NULL for get_paint_volume()

It's valid to have a ClutterClone without a clone source; in this
case the paint volume is empty.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2360
parent e0058925
......@@ -195,6 +195,10 @@ clutter_clone_get_paint_volume (ClutterActor *self,
ClutterClonePrivate *priv = CLUTTER_CLONE (self)->priv;
const ClutterPaintVolume *source_volume;
/* if the source is not set the paint volume is defined to be empty */
if (priv->clone_source == NULL)
return TRUE;
/* query the volume of the source actor and simply masquarade it as
* the clones volume... */
source_volume = clutter_actor_get_paint_volume (priv->clone_source);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment