Fix pad offset removal vs hole offset

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16767
This commit is contained in:
Seth Hillbrand 2024-01-29 08:22:12 -08:00
parent ee5e2e56c0
commit b12d0dfd67
1 changed files with 1 additions and 2 deletions

View File

@ -1648,6 +1648,7 @@ void PCB_IO_IPC2581::addPadStack( wxXmlNode* aPadNode, const PAD* aPad )
addAttribute( padStackHoleNode, "platingStatus", aPad->GetAttribute() == PAD_ATTRIB::PTH ? "PLATED" : "NONPLATED" );
addAttribute( padStackHoleNode, "plusTol", "0.0" );
addAttribute( padStackHoleNode, "minusTol", "0.0" );
addXY( padStackHoleNode, aPad->GetOffset() );
}
LSEQ layer_seq = aPad->GetLayerSet().Seq();
@ -1663,8 +1664,6 @@ void PCB_IO_IPC2581::addPadStack( wxXmlNode* aPadNode, const PAD* aPad )
addAttribute( padStackPadDefNode, "layerRef", m_layer_name_map[layer] );
addAttribute( padStackPadDefNode, "padUse", "REGULAR" );
addLocationNode( padStackPadDefNode, *aPad, true );
if( aPad->HasHole() || !aPad->FlashLayer( layer ) )
{
PCB_SHAPE shape( nullptr, SHAPE_T::CIRCLE );