Skip to content
Snippets Groups Projects
Commit 9233ccbb authored by Piotr Gawron's avatar Piotr Gawron
Browse files

operator direction fixed

parent aedf1def
No related branches found
No related tags found
1 merge request!771Resolve "wrong start and end of reaction lines"
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment