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
This commit is contained in:
parent
4caa65d100
commit
348c3d4216
|
@ -304,8 +304,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