Last fix was too aggressive.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16362
This commit is contained in:
Jeff Young 2023-12-14 18:27:10 +00:00
parent ec7e3c5bd6
commit a0274a8463
1 changed files with 1 additions and 7 deletions

View File

@ -1158,13 +1158,7 @@ bool PCB_TUNING_PATTERN::resetToBaseline( PNS::ROUTER* aRouter, int aLayer,
branch->Remove( *pnsLine );
NETINFO_ITEM* net = GetBoard()->FindNet( m_lastNetName );
PNS::LINE straightLine( *pnsLine, straightChain );
if( aPrimary )
straightLine.SetNet( net );
else
straightLine.SetNet( GetBoard()->DpCoupledNet( net ) );
PNS::LINE straightLine( *pnsLine, straightChain );
branch->Add( straightLine, false );