From c8f4e1051ba89b9f51c5523c8b5dd92cd6c1769c Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 8 May 2018 12:17:46 +0200 Subject: [PATCH] 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. --- eeschema/sch_eagle_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/sch_eagle_plugin.cpp b/eeschema/sch_eagle_plugin.cpp index 70be0c79a7..ebf00728b1 100644 --- a/eeschema/sch_eagle_plugin.cpp +++ b/eeschema/sch_eagle_plugin.cpp @@ -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 );