From 126914859a1a760f5209267bb701bfa20158cf88 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 12 Nov 2022 21:25:42 +0500 Subject: [PATCH] Use correct pad to die lengths in DP length tuner. Fixes https://gitlab.com/kicad/code/kicad/issues/12859 --- pcbnew/router/pns_dp_meander_placer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/router/pns_dp_meander_placer.cpp b/pcbnew/router/pns_dp_meander_placer.cpp index 4a442dba16..d60746b19a 100644 --- a/pcbnew/router/pns_dp_meander_placer.cpp +++ b/pcbnew/router/pns_dp_meander_placer.cpp @@ -138,8 +138,8 @@ void DP_MEANDER_PLACER::release() 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 totalN = m_padToDieLength + lineLength( m_tunedPathN, m_startPad_n, m_endPad_n ); + long long int totalP = m_padToDieP + lineLength( m_tunedPathP, m_startPad_p, m_endPad_p ); + long long int totalN = m_padToDieN + lineLength( m_tunedPathN, m_startPad_n, m_endPad_n ); return std::max( totalP, totalN ); }