paint-volume: Zero-sized actors don't have paint volume
If an actor has an allocated dimension equal to 0 then it has no paint volume.
This commit is contained in:
parent
7e6bf1612b
commit
524eb23eb7
@ -855,6 +855,10 @@ _clutter_actor_set_default_paint_volume (ClutterActor *self,
|
|||||||
|
|
||||||
clutter_actor_get_allocation_geometry (self, &geometry);
|
clutter_actor_get_allocation_geometry (self, &geometry);
|
||||||
|
|
||||||
|
/* a zero-sized actor has no paint volume */
|
||||||
|
if (geometry.width == 0 || geometry.height == 0)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
clutter_paint_volume_set_width (volume, geometry.width);
|
clutter_paint_volume_set_width (volume, geometry.width);
|
||||||
clutter_paint_volume_set_height (volume, geometry.height);
|
clutter_paint_volume_set_height (volume, geometry.height);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user