diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-10-13 22:40:08 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-10-13 22:40:08 -0400 |
commit | d3a4a92bd5b66f877e834f517c02954902004231 (patch) | |
tree | a197752ccd89fc07f163eb587443f4d2122c7908 /libs/canvas/item.cc | |
parent | fc08e1056222069ffee8a0aa822b0e7ff8d9c147 (diff) |
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
Diffstat (limited to 'libs/canvas/item.cc')
-rw-r--r-- | libs/canvas/item.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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<Item*>::const_iterator i = _items.begin(); i != _items.end(); ++i) { + if (!(*i)->visible()) { + continue; + } + boost::optional<Rect> item_bbox = (*i)->bounding_box (); if (!item_bbox) { |