Formatting.

This commit is contained in:
Jeff Young 2024-05-27 13:04:20 +01:00
parent e9a1c3032d
commit 2925d63c44
3 changed files with 3 additions and 4 deletions

View File

@ -159,7 +159,6 @@ public:
m_tree[aTargetLayer]->Insert( mmin, mmax, itemShape ); m_tree[aTargetLayer]->Insert( mmin, mmax, itemShape );
m_count++; m_count++;
} }
} }

View File

@ -3289,7 +3289,7 @@ void ALTIUM_PCB::ConvertPads6ToFootprintItemOnCopper( FOOTPRINT* aFootprint, con
{ {
// KiCad likes NPTH pads to be the same size & shape as their holes // KiCad likes NPTH pads to be the same size & shape as their holes
pad->SetShape( pad->GetDrillShape() == PAD_DRILL_SHAPE::CIRCLE ? PAD_SHAPE::CIRCLE pad->SetShape( pad->GetDrillShape() == PAD_DRILL_SHAPE::CIRCLE ? PAD_SHAPE::CIRCLE
: PAD_SHAPE::OVAL ); : PAD_SHAPE::OVAL );
pad->SetSize( pad->GetDrillSize() ); pad->SetSize( pad->GetDrillSize() );
} }

View File

@ -652,8 +652,8 @@ void PCB_GRID_HELPER::computeAnchors( BOARD_ITEM* aItem, const VECTOR2I& aRefPos
} }
} }
if (aPad->HasHole()) { if( aPad->HasHole() )
{
// Holes are at the pad centre (it's the shape that may be offset) // Holes are at the pad centre (it's the shape that may be offset)
const VECTOR2I hole_pos = aPad->GetPosition(); const VECTOR2I hole_pos = aPad->GetPosition();
const VECTOR2I hole_size = aPad->GetDrillSize(); const VECTOR2I hole_size = aPad->GetDrillSize();