diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc index 354dfeb1d9..c301305b84 100644 --- a/libs/canvas/item.cc +++ b/libs/canvas/item.cc @@ -1337,10 +1337,8 @@ Item::set_layout_sensitive (bool yn) { _layout_sensitive = yn; - for (list::const_iterator i = _items.begin(); i != _items.end(); ++i) { - if (!(*i)->layout_sensitive()) { - (*i)->set_layout_sensitive (yn); - } + for (auto & item : _items) { + item->set_layout_sensitive (yn); } }