diff --git a/Nodify/Connections/BaseConnection.cs b/Nodify/Connections/BaseConnection.cs index 109a4df5..bea62a5a 100644 --- a/Nodify/Connections/BaseConnection.cs +++ b/Nodify/Connections/BaseConnection.cs @@ -1015,7 +1015,9 @@ protected override void OnRender(DrawingContext drawingContext) if (drawPen != null) { var widenPen = new Pen(null, _baseConnection.StrokeThickness + drawPen.Thickness + _baseConnection.FocusVisualPadding * 2d); - drawingContext.DrawGeometry(null, drawPen, _baseConnection.DefiningGeometry.GetWidenedPathGeometry(widenPen)); + var geometry = _baseConnection.DefiningGeometry; + var expandedGeometry = Geometry.Combine(geometry, geometry.GetWidenedPathGeometry(widenPen), GeometryCombineMode.Union, Transform.Identity); + drawingContext.DrawGeometry(null, drawPen, expandedGeometry.GetOutlinedPathGeometry()); } } }