diff --git a/pcbnew/router/pns_item.h b/pcbnew/router/pns_item.h index 54f487cabb..32ce615fca 100644 --- a/pcbnew/router/pns_item.h +++ b/pcbnew/router/pns_item.h @@ -86,7 +86,7 @@ public: m_movable = aOther.m_movable; m_kind = aOther.m_kind; m_parent = aOther.m_parent; - m_owner = NULL; + m_owner = aOther.m_owner; // fixme: wtf this was null? m_marker = aOther.m_marker; m_rank = aOther.m_rank; m_routable = aOther.m_routable; diff --git a/pcbnew/router/pns_line.cpp b/pcbnew/router/pns_line.cpp index 5f2a04e8d1..ab694cd5c9 100644 --- a/pcbnew/router/pns_line.cpp +++ b/pcbnew/router/pns_line.cpp @@ -66,6 +66,7 @@ LINE& LINE::operator=( const LINE& aOther ) m_hasVia = aOther.m_hasVia; m_marker = aOther.m_marker; m_rank = aOther.m_rank; + m_owner = aOther.m_owner; copyLinks( &aOther );