Skip to content
Snippets Groups Projects
Commit f8c2146c authored by jsiegle's avatar jsiegle
Browse files

Minor updates to GraphViewer code

parent 151e374c
Branches
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment