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:
parent
50712f7280
commit
fa89263c8f
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue