PNS: Fix skew calculation with pad-to-die specified

Fixes https://gitlab.com/kicad/code/kicad/-/issues/11710

(cherry picked from commit 53dbd3bb02)
This commit is contained in:
Jon Evans 2022-05-31 20:18:03 -04:00
parent 6c0856c384
commit 9470bd15a1
1 changed files with 4 additions and 4 deletions

View File

@ -110,14 +110,14 @@ bool MEANDER_SKEW_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
if ( m_originPair.PLine().Net() == m_originLine.Net() )
{
m_padToDieLength = m_padToDieN;
m_coupledLength = lineLength( m_tunedPathN );
m_padToDieLength = m_padToDieP;
m_coupledLength = m_padToDieN + lineLength( m_tunedPathN );
m_tunedPath = m_tunedPathP;
}
else
{
m_padToDieLength = m_padToDieP;
m_coupledLength = lineLength( m_tunedPathP );
m_padToDieLength = m_padToDieN;
m_coupledLength = m_padToDieP + lineLength( m_tunedPathP );
m_tunedPath = m_tunedPathN;
}