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

use copy of a point (might introduce problems in the future)

parent 01132dad
......@@ -678,8 +678,8 @@ public class ReactionFromXml {
result.addNode(operator);
PolylineData centerLine = new PolylineData();
centerLine.addPoint(reactant.getLine().getEndPoint());
centerLine.addPoint(operator.getLine().getEndPoint());
centerLine.addPoint(pointTransformation.copyPoint(reactant.getLine().getEndPoint()));
centerLine.addPoint(pointTransformation.copyPoint(operator.getLine().getEndPoint()));
result.setLine(centerLine);
}
......@@ -1185,8 +1185,8 @@ public class ReactionFromXml {
product.setLine(productLine);
PolylineData reactionLine = new PolylineData();
reactionLine.addPoint(reactantLine.getEndPoint());
reactionLine.addPoint(productLine.getBeginPoint());
reactionLine.addPoint(pointTransformation.copyPoint(reactantLine.getEndPoint()));
reactionLine.addPoint(pointTransformation.copyPoint(productLine.getBeginPoint()));
reaction.setLine(reactionLine);
ReactionLineData rld = ReactionLineData.getByReactionType(reaction.getClass());
......
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