pcbnew: Only dp clearance matrix when routing dp
Fixes: lp:1787766 * https://bugs.launchpad.net/kicad/+bug/1787766
This commit is contained in:
parent
9527034e0f
commit
b8ae4e0195
|
@ -187,7 +187,8 @@ int PNS_PCBNEW_RULE_RESOLVER::Clearance( const PNS::ITEM* aA, const PNS::ITEM* a
|
||||||
int cl_b = ( net_b >= 0 ? m_netClearanceCache[net_b].clearance : m_defaultClearance );
|
int cl_b = ( net_b >= 0 ? m_netClearanceCache[net_b].clearance : m_defaultClearance );
|
||||||
|
|
||||||
// Clearance in differential pairs can only happen when there is a specific net
|
// Clearance in differential pairs can only happen when there is a specific net
|
||||||
if( net_a >= 0 && net_b >= 0 && m_netClearanceCache[net_a].coupledNet == net_b )
|
if( m_router->Mode() == PNS::PNS_MODE_ROUTE_DIFF_PAIR &&
|
||||||
|
net_a >= 0 && net_b >= 0 && m_netClearanceCache[net_a].coupledNet == net_b )
|
||||||
{
|
{
|
||||||
cl_a = m_netClearanceCache[net_a].dpClearance;
|
cl_a = m_netClearanceCache[net_a].dpClearance;
|
||||||
cl_b = m_netClearanceCache[net_b].dpClearance;
|
cl_b = m_netClearanceCache[net_b].dpClearance;
|
||||||
|
|
Loading…
Reference in New Issue