diff --git a/Source/UI/GraphViewer.cpp b/Source/UI/GraphViewer.cpp index aaa9b3afc1be4da9aa6f9e5b98aef6d436ae6fe6..89d066f3fa021f68abc71033db94c1fecd84e4e9 100644 --- a/Source/UI/GraphViewer.cpp +++ b/Source/UI/GraphViewer.cpp @@ -285,6 +285,13 @@ void GraphNode::switchIO(int path) void GraphNode::updateBoundaries() { + + int level = getLevel(); + + int horzShift = gv->getHorizontalShift(this); + + setBounds(20+horzShift*140, 20+getLevel()*40, 150, 50); + // float vertShift = -1; // float horzShift = 0; @@ -337,11 +344,7 @@ void GraphNode::updateBoundaries() // } - int level = getLevel(); - int horzShift = gv->getHorizontalShift(this); - - setBounds(20+horzShift*140, 20+getLevel()*40, 150, 50); } void GraphNode::paint(Graphics& g)