From: Tuukka Lehtonen Date: Tue, 28 Aug 2018 13:02:01 +0000 (+0300) Subject: Fixed SysdynPointerInteractor to work with simantics/platform#66 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=66bbc5661a49569dd955b83ea4dd6707c4ee46c7;p=simantics%2Fsysdyn.git Fixed SysdynPointerInteractor to work with simantics/platform#66 --- 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); } }