Eagle SCH import: keep multi-unit parts not interchangeable

Eagle supports more sophisticated unit swapping information,
so the safest choice is to prevent any unit manipulation.
This commit is contained in:
Maciej Suminski 2018-05-08 12:17:46 +02:00
parent 2b46bda2f2
commit c8f4e1051b
1 changed files with 1 additions and 0 deletions

View File

@ -1266,6 +1266,7 @@ EAGLE_LIBRARY* SCH_EAGLE_PLUGIN::loadLibrary( wxXmlNode* aLibraryNode,
wxXmlNode* gateNode = getChildrenNodes( aDeviceSetChildren, "gates" );
int gates_count = countChildren( aDeviceSetChildren["gates"], "gate" );
kpart->SetUnitCount( gates_count );
kpart->LockUnits( true );
LIB_FIELD* reference = kpart->GetField( REFERENCE );