Eagle SCH import: validate package (footprint) names
This commit is contained in:
parent
51c7381fd5
commit
228881f552
|
@ -1262,6 +1262,7 @@ EAGLE_LIBRARY* SCH_EAGLE_PLUGIN::loadLibrary( wxXmlNode* aLibraryNode,
|
||||||
wxString symbolName = edeviceset.name + edevice.name;
|
wxString symbolName = edeviceset.name + edevice.name;
|
||||||
symbolName.Replace( "*", "" );
|
symbolName.Replace( "*", "" );
|
||||||
wxASSERT( !symbolName.IsEmpty() );
|
wxASSERT( !symbolName.IsEmpty() );
|
||||||
|
LIB_ALIAS::ValidateName( symbolName );
|
||||||
|
|
||||||
if( edevice.package )
|
if( edevice.package )
|
||||||
aEagleLibrary->package[symbolName] = edevice.package.Get();
|
aEagleLibrary->package[symbolName] = edevice.package.Get();
|
||||||
|
|
Loading…
Reference in New Issue