Fix crash while reading netlist and delete extra footprints enabled

Fixes: lp:1710492
* https://bugs.launchpad.net/kicad/+bug/1710492
This commit is contained in:
Michael Geselbracht 2018-01-19 11:18:41 +01:00 committed by Maciej Suminski
parent 41eeb05d81
commit d8f0527677
1 changed files with 3 additions and 0 deletions

View File

@ -2702,6 +2702,9 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
for( const auto cnItem : connAlgo->PadList() )
{
if( !cnItem->Valid() )
continue;
int net = cnItem->Parent()->GetNetCode();
if( net > 0 )