ui: fixed non-collapsible nodes got also collapsed with more than 20 children

<description>
This commit is contained in:
Eberhard Graether
2017-11-08 22:00:34 +01:00
parent 0e7dc3242d
commit adf32d1d22
4 changed files with 19 additions and 12 deletions
@@ -1345,10 +1345,7 @@ void GraphController::layoutNestingRecursive(DummyNode* node) const
width = margins.charWidth * node->name.size();
Node::NodeTypeMask mask =
Node::NODE_NON_INDEXED | Node::NODE_TYPE | Node::NODE_BUILTIN_TYPE |
Node::NODE_CLASS | Node::NODE_STRUCT | Node::NODE_ENUM | Node::NODE_UNION;
if (node->data->isType(mask) && node->data->getChildCount() > 0)
if (node->data->isType(Node::NODE_COLLAPSIBLE_TYPE) && node->data->getChildCount() > 0)
{
addExpandToggleNode(node);
}