From d3a4a92bd5b66f877e834f517c02954902004231 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 13 Oct 2014 22:40:08 -0400 Subject: Containers should not consider the size of invisible items when computing their own bounding boxes. This fixes issues related to the rulers container believing it was taller than it actually is, and possibly other issues also --- libs/canvas/item.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/canvas/item.cc') diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc index 44335f0f62..593e7b4316 100644 --- a/libs/canvas/item.cc +++ b/libs/canvas/item.cc @@ -777,6 +777,10 @@ Item::add_child_bounding_boxes() const for (list::const_iterator i = _items.begin(); i != _items.end(); ++i) { + if (!(*i)->visible()) { + continue; + } + boost::optional item_bbox = (*i)->bounding_box (); if (!item_bbox) { -- cgit v1.2.3