Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
ff8452e2
Commit
ff8452e2
authored
May 28, 2019
by
Piotr Gawron
Browse files
use copy of a point (might introduce problems in the future)
parent
01132dad
Changes
1
Hide whitespace changes
Inline
Side-by-side
converter-CellDesigner/src/main/java/lcsb/mapviewer/converter/model/celldesigner/reaction/ReactionFromXml.java
View file @
ff8452e2
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment