QmlDesigner: Fix usage of doesLayoutChildren

Change-Id: I23158401eaa869cb258d5e1c6484d52e6760b4c9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2017-03-08 15:17:14 +01:00
parent 19f74fadd2
commit 34c16ed7bc

View File

@@ -407,7 +407,7 @@ bool QmlItemNode::modelIsInLayout() const
&& parentModelNode.metaInfo().isLayoutable())
return true;
return NodeHints::fromModelNode(modelNode()).doesLayoutChildren();
return NodeHints::fromModelNode(parentModelNode).doesLayoutChildren();
}
return false;