X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fdiagram%2Fparticipant%2FElementInteractor.java;h=ae9c1ce07a64da56e7c170149ea23d1261b00e9b;hp=caad1ef4b166ae3fc72c87ba7b65b238646eddb9;hb=48135dcd03588783f9c1b688aaa53cdaacba6ef2;hpb=b75a6bbcc34a3e88f94d04d0389ed0d2e37b6511 diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/participant/ElementInteractor.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/participant/ElementInteractor.java index caad1ef4b..ae9c1ce07 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/participant/ElementInteractor.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/participant/ElementInteractor.java @@ -148,7 +148,7 @@ public class ElementInteractor extends AbstractDiagramParticipant { // Pick element under the mouse Point2D controlPos = me.controlPosition; Point2D diagramPos = util.controlToCanvas(controlPos, null); - PickRequest req = new PickRequest(diagramPos); + PickRequest req = new PickRequest(diagramPos).context(getContext()); req.pickSorter = pickSorter; //req.pickSorter = PickRequest.PickSorter.CONNECTIONS_LAST; ArrayList result = new ArrayList();