diff --git a/model-command/src/main/java/lcsb/mapviewer/commands/layout/ApplySimpleLayoutModelCommand.java b/model-command/src/main/java/lcsb/mapviewer/commands/layout/ApplySimpleLayoutModelCommand.java index bc58fcaeb33f20a6898eaf24274ec7524ad7e69b..bc5a62e40ec7db894c18582101675ea10d6f1137 100644 --- a/model-command/src/main/java/lcsb/mapviewer/commands/layout/ApplySimpleLayoutModelCommand.java +++ b/model-command/src/main/java/lcsb/mapviewer/commands/layout/ApplySimpleLayoutModelCommand.java @@ -272,7 +272,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand { } Point2D productPoint = reaction.getReactants().get(0).getElement().getCenter(); Point2D operatorPoint = getMiddlePoint(middle, productPoint); - operator.setLine(new PolylineData(operatorPoint,middle)); + operator.setLine(new PolylineData(operatorPoint, middle)); reaction.addNode(operator); middle = operatorPoint; } @@ -311,7 +311,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand { } Point2D productPoint = reaction.getProducts().get(0).getElement().getCenter(); Point2D operatorPoint = getMiddlePoint(middle, productPoint); - operator.setLine(new PolylineData(middle, operatorPoint)); + operator.setLine(new PolylineData(operatorPoint, middle)); reaction.addNode(operator); middle = operatorPoint; }