Simplify PNS::VIA construction.

This commit is contained in:
Jeff Young 2023-04-28 00:32:25 +01:00
parent e1b39946fe
commit 9646e3c1c0
2 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,6 @@ HOLE* HOLE::Clone() const
{
HOLE* h = new HOLE( nullptr, m_holeShape->Clone() );
h->SetNet( Net() );
h->SetLayers( Layers() );
h->SetOwner( nullptr );

View File

@ -88,10 +88,10 @@ public:
m_pos = aB.m_pos;
m_diameter = aB.m_diameter;
m_shape = SHAPE_CIRCLE( m_pos, m_diameter / 2 );
SetHole( aB.m_hole->Clone() );
m_drill = aB.m_drill;
SetHole( HOLE::MakeCircularHole( m_pos, m_drill / 2 ) );
m_marker = aB.m_marker;
m_rank = aB.m_rank;
m_drill = aB.m_drill;
m_viaType = aB.m_viaType;
m_isFree = aB.m_isFree;
m_isVirtual = aB.m_isVirtual;