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

operator point order fixed

parent 303a0610
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(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;
}
......
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