Use correct pad to die lengths in DP length tuner.

Fixes https://gitlab.com/kicad/code/kicad/issues/12859
This commit is contained in:
Alex 2022-11-12 21:25:42 +05:00 committed by dsa-t
parent 9623ea7d57
commit 126914859a
1 changed files with 2 additions and 2 deletions

View File

@ -138,8 +138,8 @@ void DP_MEANDER_PLACER::release()
long long int DP_MEANDER_PLACER::origPathLength() const long long int DP_MEANDER_PLACER::origPathLength() const
{ {
long long int totalP = m_padToDieLength + lineLength( m_tunedPathP, m_startPad_p, m_endPad_p ); long long int totalP = m_padToDieP + lineLength( m_tunedPathP, m_startPad_p, m_endPad_p );
long long int totalN = m_padToDieLength + lineLength( m_tunedPathN, m_startPad_n, m_endPad_n ); long long int totalN = m_padToDieN + lineLength( m_tunedPathN, m_startPad_n, m_endPad_n );
return std::max( totalP, totalN ); return std::max( totalP, totalN );
} }