diff --git a/pcbnew/router/pns_item.cpp b/pcbnew/router/pns_item.cpp index cdd9e69932..4a9e8a72de 100644 --- a/pcbnew/router/pns_item.cpp +++ b/pcbnew/router/pns_item.cpp @@ -152,9 +152,14 @@ bool ITEM::collideSimple( const ITEM* aHead, const NODE* aNode, // fixme: this f***ing singleton must go... ROUTER* router = ROUTER::GetInstance(); ROUTER_IFACE* iface = router ? router->GetInterface() : nullptr; - bool differentNetsOnly = aCtx && aCtx->options.m_differentNetsOnly; + bool differentNetsOnly = true; int clearance; + if( aCtx ) + { + differentNetsOnly = aCtx->options.m_differentNetsOnly; + } + // Hole-to-hole collisions don't have anything to do with nets if( Kind() == HOLE_T && aHead->Kind() == HOLE_T ) differentNetsOnly = false;