]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fixed SysdynPointerInteractor to work with simantics/platform#66
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 28 Aug 2018 13:02:01 +0000 (16:02 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 28 Aug 2018 13:02:01 +0000 (16:02 +0300)
bundles/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynPointerInteractor.java

index ef74d7b5afb6ac62dce7bba836025fc8d75c8b0f..3d6e871a849c022bc3440ff8ca040cfafffe9ebb 100644 (file)
@@ -181,6 +181,6 @@ public class SysdynPointerInteractor extends PointerInteractor {
        public List<TerminalInfo> pickTerminals(Point2D controlPos) {\r
                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);\r
                Shape       canvasPickRect  = GeometryUtils.transformShape(controlPickRect, util.getInverseTransform());\r
-               return TerminalUtil.pickTerminals(diagram, canvasPickRect, false, true);\r
+               return TerminalUtil.pickTerminals(getContext(), diagram, canvasPickRect, false, true);\r
        }\r
 }\r