Commit df5ca33b authored by Piotr Gawron's avatar Piotr Gawron
Browse files

operator point order fixed

parent 303a0610
...@@ -272,7 +272,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand { ...@@ -272,7 +272,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand {
} }
Point2D productPoint = reaction.getReactants().get(0).getElement().getCenter(); Point2D productPoint = reaction.getReactants().get(0).getElement().getCenter();
Point2D operatorPoint = getMiddlePoint(middle, productPoint); Point2D operatorPoint = getMiddlePoint(middle, productPoint);
operator.setLine(new PolylineData(operatorPoint,middle)); operator.setLine(new PolylineData(operatorPoint, middle));
reaction.addNode(operator); reaction.addNode(operator);
middle = operatorPoint; middle = operatorPoint;
} }
...@@ -311,7 +311,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand { ...@@ -311,7 +311,7 @@ public class ApplySimpleLayoutModelCommand extends ApplyLayoutModelCommand {
} }
Point2D productPoint = reaction.getProducts().get(0).getElement().getCenter(); Point2D productPoint = reaction.getProducts().get(0).getElement().getCenter();
Point2D operatorPoint = getMiddlePoint(middle, productPoint); Point2D operatorPoint = getMiddlePoint(middle, productPoint);
operator.setLine(new PolylineData(middle, operatorPoint)); operator.setLine(new PolylineData(operatorPoint, middle));
reaction.addNode(operator); reaction.addNode(operator);
middle = operatorPoint; middle = operatorPoint;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment