mirror of https://github.com/axmolengine/axmol.git
fix.
This commit is contained in:
parent
3765f87651
commit
c2473b9b99
|
@ -204,7 +204,7 @@ void foreachNodeDescendant(Node* parent, tCallBack callback)
|
|||
{
|
||||
callback(parent);
|
||||
|
||||
auto children = parent->getChildren();
|
||||
auto& children = parent->getChildren();
|
||||
for (auto child : children)
|
||||
{
|
||||
foreachNodeDescendant(child, callback);
|
||||
|
|
|
@ -1659,7 +1659,7 @@ bool Layout::isLastWidgetInContainer(Widget* widget, FocusDirection direction)c
|
|||
return true;
|
||||
}
|
||||
|
||||
auto container = parent->getChildren();
|
||||
auto& container = parent->getChildren();
|
||||
ssize_t index = container.getIndex(widget);
|
||||
if (parent->getLayoutType() == Type::HORIZONTAL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue