CADSTAR PCB importer: Fix loading of rounded rectangle pads
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14445
(cherry picked from commit aaeb8ca739
)
This commit is contained in:
parent
5cab66fb18
commit
08d65beb26
|
@ -1104,7 +1104,7 @@ PAD* CADSTAR_PCB_ARCHIVE_LOADER::getKiCadPad( const COMPONENT_PAD& aCadstarPad,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PAD_SHAPE_TYPE::ROUNDED_RECT:
|
case PAD_SHAPE_TYPE::ROUNDED_RECT:
|
||||||
pad->SetShape( PAD_SHAPE::RECT );
|
pad->SetShape( PAD_SHAPE::ROUNDRECT );
|
||||||
pad->SetRoundRectCornerRadius( getKiCadLength( csPadcode.Shape.InternalFeature ) );
|
pad->SetRoundRectCornerRadius( getKiCadLength( csPadcode.Shape.InternalFeature ) );
|
||||||
pad->SetSize( { getKiCadLength( (long long) csPadcode.Shape.Size
|
pad->SetSize( { getKiCadLength( (long long) csPadcode.Shape.Size
|
||||||
+ (long long) csPadcode.Shape.LeftLength
|
+ (long long) csPadcode.Shape.LeftLength
|
||||||
|
|
Loading…
Reference in New Issue