CADSTAR PCB importer: Fix incorrect position of overridden pads

(cherry picked from commit 89441d807d)
This commit is contained in:
Roberto Fernandez Bautista 2023-03-29 20:44:36 +02:00
parent 9466624f9d
commit 5cab66fb18
1 changed files with 4 additions and 0 deletions

View File

@ -1700,6 +1700,10 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadComponents()
PADEXCEPTION& padEx = padPair.second;
COMPONENT_PAD csPad = fpLibEntry.ComponentPads.at( padPair.first );
// Reset the pad to be around 0,0
csPad.Position -= fpLibEntry.Origin;
csPad.Position += m_designCenter;
if( !padEx.PadCode.IsEmpty() )
csPad.PadCodeID = padEx.PadCode;