diff --git a/pcbnew/router/pns_hole.cpp b/pcbnew/router/pns_hole.cpp index 92c08d06d8..06cb9c0710 100644 --- a/pcbnew/router/pns_hole.cpp +++ b/pcbnew/router/pns_hole.cpp @@ -41,7 +41,6 @@ HOLE* HOLE::Clone() const { HOLE* h = new HOLE( nullptr, m_holeShape->Clone() ); - h->SetNet( Net() ); h->SetLayers( Layers() ); h->SetOwner( nullptr ); diff --git a/pcbnew/router/pns_via.h b/pcbnew/router/pns_via.h index 8097080004..35cfa6b618 100644 --- a/pcbnew/router/pns_via.h +++ b/pcbnew/router/pns_via.h @@ -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;