Push hole-to-hole min processing down a level.

Also removes adding the track width to the via gap, which was
never right.

Fixes https://gitlab.com/kicad/code/kicad/issues/7173
This commit is contained in:
Jeff Young 2021-02-24 17:33:05 +00:00
parent 50712f7280
commit fa89263c8f
2 changed files with 3 additions and 4 deletions

View File

@ -534,7 +534,8 @@ bool DIFF_PAIR_PLACER::FindDpPrimitivePair( NODE* aWorld, const VECTOR2I& aP, IT
int DIFF_PAIR_PLACER::viaGap() const
{
return m_sizes.DiffPairViaGap() + m_sizes.DiffPairWidth();
return std::max( m_sizes.DiffPairViaGap(),
m_sizes.GetHoleToHole() + m_viaDrill - m_viaDiameter );
}

View File

@ -62,9 +62,7 @@ public:
int DiffPairViaGap() const
{
int netClassGap = m_diffPairViaGapSameAsTraceGap ? m_diffPairGap : m_diffPairViaGap;
return std::max( netClassGap, m_holeToHole - m_viaDiameter );
return m_diffPairViaGapSameAsTraceGap ? m_diffPairGap : m_diffPairViaGap;
}
bool DiffPairViaGapSameAsTraceGap() const { return m_diffPairViaGapSameAsTraceGap; }