diff --git a/src/main/java/com/marginallyclever/nodegraphcore/Node.java b/src/main/java/com/marginallyclever/nodegraphcore/Node.java index f3331cb..2494ae7 100644 --- a/src/main/java/com/marginallyclever/nodegraphcore/Node.java +++ b/src/main/java/com/marginallyclever/nodegraphcore/Node.java @@ -114,8 +114,9 @@ public String getUniqueName() { public void updateBounds() { int w=(int)rectangle.getWidth(); int h=Node.TITLE_HEIGHT; - int y=getRectangle().y; - int x=getRectangle().x; + var rect = getRectangle(); + int x=rect.x; + int y=rect.y; for(Dock v : variables) { Rectangle r = v.getRectangle(); r.y=h+y;