mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
actor: Remove an has_allocation() check
The get_content_box() method should always succeed; if the actor does not have an allocation, we are just going to return a 0-box.
This commit is contained in:
parent
de32ba1ddf
commit
a7714e294e
@ -17655,9 +17655,6 @@ clutter_actor_get_content_box (ClutterActor *self,
|
||||
|
||||
priv = self->priv;
|
||||
|
||||
if (!clutter_actor_has_allocation (self))
|
||||
return;
|
||||
|
||||
box->x1 = 0.f;
|
||||
box->y1 = 0.f;
|
||||
box->x2 = priv->allocation.x2 - priv->allocation.x1;
|
||||
|
Loading…
Reference in New Issue
Block a user