invisible items/containers should not add their children to "items-at-point"

This commit is contained in:
Paul Davis
2014-06-30 08:32:18 -04:00
parent cf075743e4
commit 33339090c3

View File

@@ -959,11 +959,13 @@ Item::add_items_at_point (Duple const point, vector<Item const *>& items) const
return;
}
/* recurse and add any items within our group that contain point */
/* recurse and add any items within our group that contain point.
Our children are only considered visible if we are
*/
vector<Item*> our_items;
if (!_items.empty()) {
if (!_items.empty() && visible()) {
ensure_lut ();
our_items = _lut->items_at_point (point);
}