13
0

Canvas: fix logic bug when setting child items to be layout sensitive

Also, auto-fy the loop
This commit is contained in:
Paul Davis 2024-11-05 14:55:37 -07:00
parent ba782dd097
commit 5808c6e78f

View File

@ -1337,10 +1337,8 @@ Item::set_layout_sensitive (bool yn)
{ {
_layout_sensitive = yn; _layout_sensitive = yn;
for (list<Item*>::const_iterator i = _items.begin(); i != _items.end(); ++i) { for (auto & item : _items) {
if (!(*i)->layout_sensitive()) { item->set_layout_sensitive (yn);
(*i)->set_layout_sensitive (yn);
}
} }
} }