PNS: Set tuned path correctly in skew tuner

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8708
This commit is contained in:
Jon Evans 2021-07-03 14:06:30 -04:00
parent 1b9893841b
commit 3c59e452d6
1 changed files with 3 additions and 1 deletions

View File

@ -112,11 +112,13 @@ bool MEANDER_SKEW_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
{ {
m_padToDieLength = m_padToDieN; m_padToDieLength = m_padToDieN;
m_coupledLength = lineLength( m_tunedPathN ); m_coupledLength = lineLength( m_tunedPathN );
m_tunedPath = m_tunedPathP;
} }
else else
{ {
m_padToDieLength = m_padToDieP; m_padToDieLength = m_padToDieP;
m_coupledLength = lineLength( m_tunedPathP ); m_coupledLength = lineLength( m_tunedPathP );
m_tunedPath = m_tunedPathN;
} }
return true; return true;
@ -125,7 +127,7 @@ bool MEANDER_SKEW_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
long long int MEANDER_SKEW_PLACER::origPathLength() const long long int MEANDER_SKEW_PLACER::origPathLength() const
{ {
return lineLength( m_tunedPath ); return m_padToDieLength + lineLength( m_tunedPath );
} }