From ddcd004350df88d755c222e288a442052b07f3e1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 27 Jul 2021 12:27:37 -0600 Subject: [PATCH] canvas: only reset _bounding_box_dirty in the parent if the child's bbox did change --- libs/canvas/item.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc index 8f6bfd498f..51613a58a2 100644 --- a/libs/canvas/item.cc +++ b/libs/canvas/item.cc @@ -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);