Ratsnest default value for tracks and vias

Fixes: lp:1851611
* https://bugs.launchpad.net/kicad/+bug/1851611

(cherry picked from commit 6182133a4e)
(slightly modified due to differences between master and 5.1)
This commit is contained in:
Fabien Corona 2019-11-07 13:19:24 +01:00 committed by Ian McInerney
parent d6acb64514
commit 4130ce2b93
1 changed files with 1 additions and 0 deletions

View File

@ -1255,6 +1255,7 @@ void PNS_KICAD_IFACE::AddItem( PNS::ITEM* aItem )
if( newBI ) if( newBI )
{ {
newBI->SetLocalRatsnestVisible( m_board->IsElementVisible( LAYER_RATSNEST ) );
aItem->SetParent( newBI ); aItem->SetParent( newBI );
newBI->ClearFlags(); newBI->ClearFlags();