Fixed crash on disabling all layers in the pad properties window.

This commit is contained in:
Maciej Suminski 2015-10-01 16:03:20 +02:00
parent db8560f055
commit ea005bc94d
1 changed files with 1 additions and 1 deletions

View File

@ -967,7 +967,7 @@ void D_PAD::ViewGetLayers( int aLayers[], int& aCount ) const
{ {
wxString msg; wxString msg;
msg.Printf( wxT( "footprint %s, pad %s: could not find valid layer for pad" ), msg.Printf( wxT( "footprint %s, pad %s: could not find valid layer for pad" ),
GetParent()->GetReference(), GetParent() ? GetParent()->GetReference() : "<null>",
GetPadName().IsEmpty() ? "(unnamed)" : GetPadName() ); GetPadName().IsEmpty() ? "(unnamed)" : GetPadName() );
wxLogWarning( msg ); wxLogWarning( msg );
} }