From f8c2146c2c326530a8cc5ce121bd52a1264e3a5e Mon Sep 17 00:00:00 2001
From: jsiegle <jsiegle@mit.edu>
Date: Sat, 11 Jan 2014 22:09:04 -0500
Subject: [PATCH] Minor updates to GraphViewer code

---
 Source/UI/GraphViewer.cpp | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/Source/UI/GraphViewer.cpp b/Source/UI/GraphViewer.cpp
index aaa9b3afc..89d066f3f 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)
-- 
GitLab