From 85207c6355c9aa1fffd1f12fba8376be812626af Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Fri, 10 Nov 2017 15:43:27 +0100 Subject: [PATCH] logic: Fixed implicit node not autoexpanded in graph --- src/lib/component/controller/helper/DummyNode.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/component/controller/helper/DummyNode.h b/src/lib/component/controller/helper/DummyNode.h index 555c6297..b4dca3f0 100644 --- a/src/lib/component/controller/helper/DummyNode.h +++ b/src/lib/component/controller/helper/DummyNode.h @@ -241,9 +241,11 @@ public: bool hasMissingChildNodes() const { size_t childCount = 0; + bool implicit = false; if (isGraphNode()) { childCount = data->getChildCount(); + implicit = data->isImplicit(); } size_t subNodeCount = 0; @@ -253,7 +255,7 @@ public: { for (const std::shared_ptr& subSubNode : subNode->subNodes) { - if (subSubNode->isGraphNode() && !subSubNode->data->isImplicit()) + if (subSubNode->isGraphNode() && (implicit || !subSubNode->data->isImplicit())) { subNodeCount++; }