Don't consider shorted items when opitmizing ratsnest.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14715

(cherry picked from commit 80aef37cc4)
This commit is contained in:
Jeff Young 2023-05-20 22:54:22 +01:00
parent 00a82905ec
commit dc50b7b065
1 changed files with 4 additions and 0 deletions

View File

@ -341,6 +341,10 @@ void RN_NET::OptimizeRNEdges()
for( CN_ITEM* item : aAnchor->Item()->ConnectedItems() )
{
// Don't consider shorted items
if( aAnchor->Item()->Net() != item->Net() )
continue;
CN_ZONE_LAYER* zoneLayer = dynamic_cast<CN_ZONE_LAYER*>( item );
if( zoneLayer && aLayerSet.test( zoneLayer->Layer() ) )