Fix an incorrect calculation in length tuning tools.
MEANDER_PLACER_BASE::lineLength wasn't calculating the length correctly
when starting and ending pads were on different layers.
Naturally, now jointA corresponds to the start of the path, jointB to the end.
Fixes https://gitlab.com/kicad/code/kicad/issues/12881
(cherry picked from commit 348c3d4216
)
This commit is contained in:
parent
6e6a748320
commit
bd9c37aa5f
|
@ -287,8 +287,8 @@ const ITEM_SET TOPOLOGY::AssembleTrivialPath( ITEM* aStart,
|
|||
JOINT* jointA = nullptr;
|
||||
JOINT* jointB = nullptr;
|
||||
|
||||
followTrivialPath( &l, false, path, visited, &jointA );
|
||||
followTrivialPath( &l, true, path, visited, &jointB );
|
||||
followTrivialPath( &l, false, path, visited, &jointB );
|
||||
followTrivialPath( &l, true, path, visited, &jointA );
|
||||
|
||||
if( aTerminalJoints )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue