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:
parent
41eeb05d81
commit
d8f0527677
|
@ -2702,6 +2702,9 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||||
|
|
||||||
for( const auto cnItem : connAlgo->PadList() )
|
for( const auto cnItem : connAlgo->PadList() )
|
||||||
{
|
{
|
||||||
|
if( !cnItem->Valid() )
|
||||||
|
continue;
|
||||||
|
|
||||||
int net = cnItem->Parent()->GetNetCode();
|
int net = cnItem->Parent()->GetNetCode();
|
||||||
|
|
||||||
if( net > 0 )
|
if( net > 0 )
|
||||||
|
|
Loading…
Reference in New Issue