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
+1 -1
View File
@@ -928,7 +928,7 @@ std::shared_ptr<Graph> PersistentStorage::getGraphForActiveTokenIds(
m_hierarchyCache.addFirstChildIdsForNodeId(elementId, &nodeIds, &edgeIds);
// don't expand active node if it has more than 20 child nodes
if (nodeIds.size() > 20)
if (nodeIds.size() > 20 && nodeType & Node::NODE_COLLAPSIBLE_TYPE)
{
nodeIds.clear();
}