CADSTAR PCB importer: Fix loading of rounded rectangle pads

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14445
This commit is contained in:
Roberto Fernandez Bautista 2023-03-29 20:52:15 +02:00
parent 89441d807d
commit aaeb8ca739
1 changed files with 1 additions and 1 deletions

View File

@ -1150,7 +1150,7 @@ PAD* CADSTAR_PCB_ARCHIVE_LOADER::getKiCadPad( const COMPONENT_PAD& aCadstarPad,
break;
case PAD_SHAPE_TYPE::ROUNDED_RECT:
pad->SetShape( PAD_SHAPE::RECT );
pad->SetShape( PAD_SHAPE::ROUNDRECT );
pad->SetRoundRectCornerRadius( getKiCadLength( csPadcode.Shape.InternalFeature ) );
pad->SetSize( { getKiCadLength( (long long) csPadcode.Shape.Size
+ (long long) csPadcode.Shape.LeftLength