From ca2230ef8d0b31fabaa114535c0334ece283cb8a Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Sat, 1 Dec 2018 01:16:34 +0200 Subject: [PATCH] Fixed invalid argument problem from RouteGraphUtils.load Wrong IElement passed to TerminalLayout.getTerminalPosition. gitlab #220 Change-Id: I46b82ccd8937107a771c1f157cd4581066736abc --- .../src/org/simantics/diagram/adapter/RouteGraphUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/RouteGraphUtils.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/RouteGraphUtils.java index 62c404615..17ccbe351 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/RouteGraphUtils.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/RouteGraphUtils.java @@ -302,7 +302,7 @@ public class RouteGraphUtils { final ResourceTerminal rt = new ResourceTerminal(terminal); final TerminalLayout tl = te.getElementClass().getSingleItem(TerminalLayout.class); - AffineTransform terminalPos = tl.getTerminalPosition(element, rt); + AffineTransform terminalPos = tl.getTerminalPosition(te, rt); if (terminalPos != null) { terminalTr.concatenate(terminalPos); -- 2.47.1