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
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user