From 9f80bcbcb777d3bac74930c7ab8b8fd32ceaea58 Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Tue, 17 May 2016 14:47:36 +0200 Subject: [PATCH] ui: Fixed nodes not sorted when expanding in overview --- src/lib/component/controller/GraphController.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/component/controller/GraphController.cpp b/src/lib/component/controller/GraphController.cpp index 0f73d18d..bcc6a5d6 100644 --- a/src/lib/component/controller/GraphController.cpp +++ b/src/lib/component/controller/GraphController.cpp @@ -122,10 +122,11 @@ void GraphController::handleMessage(MessageGraphNodeBundleSplit* message) } } - setActiveAndVisibility(utility::concat(m_activeNodeIds, m_activeEdgeIds)); + std::vector tokenIds = utility::concat(m_activeNodeIds, m_activeEdgeIds); + setActiveAndVisibility(tokenIds); layoutNesting(); - layoutGraph(true); + layoutGraph(tokenIds.size() > 0); buildGraph(message); }