diff --git a/pcbnew/router/pns_topology.cpp b/pcbnew/router/pns_topology.cpp index 31710ec35e..62c4f2582c 100644 --- a/pcbnew/router/pns_topology.cpp +++ b/pcbnew/router/pns_topology.cpp @@ -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 ) {