From 9233ccbbd27aef4c7c7211b2924d0b6718e62de2 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Mon, 13 May 2019 18:47:25 +0200 Subject: [PATCH] operator direction fixed --- .../commands/layout/ApplySimpleLayoutModelCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7d06c068c2..bc58fcaeb3 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(middle, operatorPoint)); + operator.setLine(new PolylineData(operatorPoint,middle)); reaction.addNode(operator); middle = operatorPoint; } -- GitLab