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

add space between process and inhibition

parent 8422ec7f
Pipeline #28117 passed with stage
in 11 minutes and 40 seconds
......@@ -20,6 +20,8 @@ minerva (15.0.0~beta.5) unstable; urgency=medium
break upload (#1273)
* Bug fix: export from minerva does not include SemanticZoom terms for text
notes (#1287)
* Bug fix: import from GPML introduces space between inhibition and process
(#1270)
-- Piotr Gawron <piotr.gawron@uni.lu> Tue, 2 Jun 2020 16:00:00 +0200
......
......@@ -792,9 +792,12 @@ public class ModelContructor {
reaction.setLine(modifierLine);
ModifierTypeUtils mtu = new ModifierTypeUtils();
for (Modifier m : reaction.getModifiers()) {
m.getLine().setEndPoint(m.getLine().getPoints().get(m.getLine().getPoints().size() - 2));
m.getLine().setEndPoint(mtu.getAnchorPointOnReactionRect(reaction, mtu.getTargetLineIndexByModifier(m)));
for (Modifier modifier : reaction.getModifiers()) {
modifier.getLine().setEndPoint(modifier.getLine().getPoints().get(modifier.getLine().getPoints().size() - 2));
modifier.getLine().setEndPoint(mtu.getAnchorPointOnReactionRect(reaction, mtu.getTargetLineIndexByModifier(modifier)));
ModifierType mt = mtu.getModifierTypeForClazz(modifier.getClass());
modifier.getLine().trimEnd(mt.getTrimLength());
}
return reaction;
......@@ -900,8 +903,6 @@ public class ModelContructor {
e.getLine().setType(mt.getLineType());
mod.setLine(e.getLine());
mod.getLine().trimEnd(mt.getTrimLength());
return mod;
}
......
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