Browse Source

Nullptr safety. (Sentry KICAD-5N)

7.0
Jeff Young 3 years ago
parent
commit
f90b04c715
  1. 3
      pcbnew/exporters/export_gencad.cpp

3
pcbnew/exporters/export_gencad.cpp

@ -935,6 +935,8 @@ static void CreateSignalsSection( FILE* aFile, BOARD* aPcb )
{
net = aPcb->FindNet( ii );
if( net )
{
if( net->GetNetname() == wxEmptyString ) // dummy netlist (no connection)
{
msg.Printf( wxT( "NoConnection%d" ), NbNoConn++ );
@ -964,6 +966,7 @@ static void CreateSignalsSection( FILE* aFile, BOARD* aPcb )
}
}
}
}
fputs( "$ENDSIGNALS\n\n", aFile );
}

Loading…
Cancel
Save