diff --git a/pcbnew/router/pns_node.cpp b/pcbnew/router/pns_node.cpp index 154376af90..41445bd0b2 100644 --- a/pcbnew/router/pns_node.cpp +++ b/pcbnew/router/pns_node.cpp @@ -484,7 +484,7 @@ NODE::OPT_OBSTACLE NODE::CheckColliding( const ITEM* aItemA, int aKindMask ) if( line->EndsWithVia() ) { n += QueryColliding( &line->Via(), obs, aKindMask, 1 ); - + if( n ) return OPT_OBSTACLE( obs[0] ); } diff --git a/pcbnew/router/pns_router.cpp b/pcbnew/router/pns_router.cpp index 2c7ce7a023..c129be06af 100644 --- a/pcbnew/router/pns_router.cpp +++ b/pcbnew/router/pns_router.cpp @@ -273,18 +273,7 @@ bool ROUTER::isStartingPointRoutable( const VECTOR2I& aWhere, ITEM* aStartItem, } } - VECTOR2I startPoint = aStartItem ? aStartItem->Anchor( 0 ) : aWhere; - - if( aStartItem && aStartItem->OfKind( ITEM::SEGMENT_T | ITEM::ARC_T ) ) - { - VECTOR2I otherEnd = aStartItem->Anchor( 1 ); - - if( ( otherEnd - aWhere ).SquaredEuclideanNorm() - < ( startPoint - aWhere ).SquaredEuclideanNorm() ) - { - startPoint = otherEnd; - } - } + VECTOR2I startPoint = aWhere; if( m_mode == PNS_MODE_ROUTE_SINGLE ) {