PNS: Set tuned path correctly in skew tuner
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8708
This commit is contained in:
parent
1b9893841b
commit
3c59e452d6
|
@ -112,11 +112,13 @@ bool MEANDER_SKEW_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
|
|||
{
|
||||
m_padToDieLength = m_padToDieN;
|
||||
m_coupledLength = lineLength( m_tunedPathN );
|
||||
m_tunedPath = m_tunedPathP;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_padToDieLength = m_padToDieP;
|
||||
m_coupledLength = lineLength( m_tunedPathP );
|
||||
m_tunedPath = m_tunedPathN;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -125,7 +127,7 @@ bool MEANDER_SKEW_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
|
|||
|
||||
long long int MEANDER_SKEW_PLACER::origPathLength() const
|
||||
{
|
||||
return lineLength( m_tunedPath );
|
||||
return m_padToDieLength + lineLength( m_tunedPath );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue