mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
actor: Default paint volume does not work without allocation
We already check for needs_allocation before getting the default paint volume, but explicit is better than implicit.
This commit is contained in:
parent
e31d7d7400
commit
acd8f86570
@ -5969,6 +5969,12 @@ clutter_actor_update_default_paint_volume (ClutterActor *self,
|
||||
ClutterActorPrivate *priv = self->priv;
|
||||
gboolean res = TRUE;
|
||||
|
||||
/* this should be checked before we call this function, but it's a
|
||||
* good idea to be explicit when it costs us nothing
|
||||
*/
|
||||
if (priv->needs_allocation)
|
||||
return FALSE;
|
||||
|
||||
/* we start from the allocation */
|
||||
clutter_paint_volume_set_width (volume,
|
||||
priv->allocation.x2 - priv->allocation.x1);
|
||||
|
Loading…
Reference in New Issue
Block a user