From df5ca33b4585fbe376ed6341e333f216528facb2 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Mon, 13 May 2019 19:10:32 +0200 Subject: [PATCH] operator point order fixed --- .../commands/layout/ApplySimpleLayoutModelCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 bc58fcaeb3..bc5a62e40e 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; } -- GitLab