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:25:32 +01:00
committed by Maciej Suminski
parent 41eeb05d81
commit d8f0527677
+3
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 )