13
0

canvas: only reset _bounding_box_dirty in the parent if the child's bbox did change

This commit is contained in:
Paul Davis 2021-07-27 12:27:37 -06:00
parent c1fa1e1a29
commit ddcd004350

View File

@ -1152,7 +1152,10 @@ void
Item::child_changed (bool bbox_changed)
{
invalidate_lut ();
_bounding_box_dirty = bbox_changed;
if (bbox_changed) {
_bounding_box_dirty = true;
}
if (_parent) {
_parent->child_changed (bbox_changed);