]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictNetworkEdgeElement.java
Fixed two selection/picking related bugs
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / adapters / DistrictNetworkEdgeElement.java
index 8fb105d8870f8f077b9f67407440e3c3b5bd89a7..8af6b20a2b873bbea91d2e15fb4f7a4b2b9af43a 100644 (file)
@@ -112,7 +112,7 @@ public class DistrictNetworkEdgeElement {
             if (size == null)
                 size = new Rectangle2D.Double();
             if (edge != null)
-                size.setFrame(DistrictNetworkEdgeNode.calculatePath(edge, path.get(), false).getBounds2D());
+                size.setFrame(DistrictNetworkEdgeNode.calculatePath(edge, path.get(), true).getBounds2D());
             else
                 LOGGER.debug("Element {} does not have edge!", e);
 
@@ -123,7 +123,7 @@ public class DistrictNetworkEdgeElement {
         public Shape getElementShape(IElement e) {
             DistrictNetworkEdge edge = e.getHint(KEY_DN_EDGE);
             if (edge != null) {
-                return DistrictNetworkEdgeNode.calculatePath(edge, null, false);
+                return DistrictNetworkEdgeNode.calculatePath(edge, null, true);
             } else {
                 return getBounds(e, null);
             }