From da3ea7e2365ff0b855bf62e56cc4a41b355299ce Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 27 Jul 2021 16:54:33 -0600 Subject: [PATCH] canvas: rename variable for clarity --- libs/canvas/item.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc index f9738a011b..d84ae03097 100644 --- a/libs/canvas/item.cc +++ b/libs/canvas/item.cc @@ -964,11 +964,12 @@ Item::add_child_bounding_boxes (bool include_hidden) const continue; } - Rect group_bbox = (*i)->item_to_parent (item_bbox); + Rect child_bbox = (*i)->item_to_parent (item_bbox); + if (have_one) { - bbox = bbox.extend (group_bbox); + bbox = bbox.extend (child_bbox); } else { - bbox = group_bbox; + bbox = child_bbox; have_one = true; } }