mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Canvas: fix logic bug when setting child items to be layout sensitive
Also, auto-fy the loop
This commit is contained in:
parent
ba782dd097
commit
5808c6e78f
1 changed files with 2 additions and 4 deletions
|
|
@ -1337,10 +1337,8 @@ Item::set_layout_sensitive (bool yn)
|
|||
{
|
||||
_layout_sensitive = yn;
|
||||
|
||||
for (list<Item*>::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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue