Fixed crash on disabling all layers in the pad properties window.
This commit is contained in:
parent
db8560f055
commit
ea005bc94d
|
@ -967,7 +967,7 @@ void D_PAD::ViewGetLayers( int aLayers[], int& aCount ) const
|
|||
{
|
||||
wxString msg;
|
||||
msg.Printf( wxT( "footprint %s, pad %s: could not find valid layer for pad" ),
|
||||
GetParent()->GetReference(),
|
||||
GetParent() ? GetParent()->GetReference() : "<null>",
|
||||
GetPadName().IsEmpty() ? "(unnamed)" : GetPadName() );
|
||||
wxLogWarning( msg );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue