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:
Alex 2022-11-12 02:11:12 +05:00 committed by dsa-t
parent 6e6a748320
commit bd9c37aa5f
1 changed files with 2 additions and 2 deletions

View File

@ -287,8 +287,8 @@ const ITEM_SET TOPOLOGY::AssembleTrivialPath( ITEM* aStart,
JOINT* jointA = nullptr; JOINT* jointA = nullptr;
JOINT* jointB = nullptr; JOINT* jointB = nullptr;
followTrivialPath( &l, false, path, visited, &jointA ); followTrivialPath( &l, false, path, visited, &jointB );
followTrivialPath( &l, true, path, visited, &jointB ); followTrivialPath( &l, true, path, visited, &jointA );
if( aTerminalJoints ) if( aTerminalJoints )
{ {