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:
parent
00a82905ec
commit
dc50b7b065
|
@ -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() ) )
|
||||
|
|
Loading…
Reference in New Issue