aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/gui/constants
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/gui/constants')
-rw-r--r--src/jcgp/gui/constants/Position.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jcgp/gui/constants/Position.java b/src/jcgp/gui/constants/Position.java
index 0ea1299..a13d21e 100644
--- a/src/jcgp/gui/constants/Position.java
+++ b/src/jcgp/gui/constants/Position.java
@@ -29,6 +29,8 @@ public final class Position {
public static void place(GUIOutput output) {
output.relocate(((GUI.resources.columns() + 1) * (2 * Constants.NODE_RADIUS + Constants.SPACING)),
output.getOutput().getIndex() * (2 * Constants.NODE_RADIUS + Constants.SPACING));
+ output.getLine().setStartX(output.getLayoutX() - Constants.NODE_RADIUS);
+ output.getLine().setStartY(output.getLayoutY());
}
public static void connect(Line line, GUIGene target) {