From 66bbc5661a49569dd955b83ea4dd6707c4ee46c7 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Tue, 28 Aug 2018 16:02:01 +0300 Subject: [PATCH] Fixed SysdynPointerInteractor to work with simantics/platform#66 --- .../sysdyn/ui/editor/participant/SysdynPointerInteractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynPointerInteractor.java b/bundles/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynPointerInteractor.java index ef74d7b5..3d6e871a 100644 --- a/bundles/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynPointerInteractor.java +++ b/bundles/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynPointerInteractor.java @@ -181,6 +181,6 @@ public class SysdynPointerInteractor extends PointerInteractor { public List pickTerminals(Point2D controlPos) { Rectangle2D controlPickRect = new Rectangle2D.Double(controlPos.getX()-SysdynPointerInteractor.PICK_DIST, controlPos.getY()-SysdynPointerInteractor.PICK_DIST, SysdynPointerInteractor.PICK_DIST*2+1, SysdynPointerInteractor.PICK_DIST*2+1); Shape canvasPickRect = GeometryUtils.transformShape(controlPickRect, util.getInverseTransform()); - return TerminalUtil.pickTerminals(diagram, canvasPickRect, false, true); + return TerminalUtil.pickTerminals(getContext(), diagram, canvasPickRect, false, true); } } -- 2.47.1