+
+ @Override
+ public Rectangle2D getBoundsInLocal() {
+ // #134: Route graph connections render their own selection.
+ // ElementPainter will place an empty G2DParentNode
+ // called "selection" under this ConnectionNode which
+ // should be ignored in bounds calculations.
+ // Otherwise this node will not support being inserted
+ // into a spatial search structure and further selections
+ // will fail.
+ return super.getBoundsInLocal(true);
+ }
+