st-box-layout: Don't report a paint volume when we have no allocation
This commit is contained in:
parent
5a42a91ee0
commit
aa6f352cb0
@ -495,6 +495,10 @@ st_box_layout_get_paint_volume (ClutterActor *actor,
|
|||||||
ClutterActorBox content_box;
|
ClutterActorBox content_box;
|
||||||
ClutterVertex origin;
|
ClutterVertex origin;
|
||||||
|
|
||||||
|
/* Setting the paint volume does not make sense when we don't have any allocation */
|
||||||
|
if (!clutter_actor_has_allocation (actor))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
/* When have an adjustment we are clipped to the content box, so base
|
/* When have an adjustment we are clipped to the content box, so base
|
||||||
* our paint volume on that. */
|
* our paint volume on that. */
|
||||||
if (priv->hadjustment || priv->vadjustment)
|
if (priv->hadjustment || priv->vadjustment)
|
||||||
|
Loading…
Reference in New Issue
Block a user