From 46312674c6983effbd25818da73dc8db644c2cb3 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 10 Oct 2025 17:11:16 -0700 Subject: [PATCH] Re-work of 5514396c for v9 All links are processed in the same order Fixes https://gitlab.com/kicad/code/kicad/-/issues/21913 --- pcbnew/router/pns_topology.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/router/pns_topology.cpp b/pcbnew/router/pns_topology.cpp index 582c7cdf21..ad9661aa1a 100644 --- a/pcbnew/router/pns_topology.cpp +++ b/pcbnew/router/pns_topology.cpp @@ -293,8 +293,8 @@ ITEM_SET TOPOLOGY::followTrivialPath( LINE* aLine2, const JOINT** aTerminalJoint if( aTerminalJointB ) *aTerminalJointB = right.m_end; - for( int i = left.m_items.Size() - 1; i >= 0; i-- ) - path.Prepend( left.m_items[i] ); + for( ITEM* item : left.m_items ) + path.Prepend( item ); for( ITEM* item : right.m_items ) path.Add( item );