router: copy m_owner when copying PNS::ITEMs

This commit is contained in:
Tomasz Włostowski 2019-08-07 23:45:38 +02:00
parent 75fcdb3b08
commit 5666af4d1d
2 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public:
m_movable = aOther.m_movable; m_movable = aOther.m_movable;
m_kind = aOther.m_kind; m_kind = aOther.m_kind;
m_parent = aOther.m_parent; m_parent = aOther.m_parent;
m_owner = NULL; m_owner = aOther.m_owner; // fixme: wtf this was null?
m_marker = aOther.m_marker; m_marker = aOther.m_marker;
m_rank = aOther.m_rank; m_rank = aOther.m_rank;
m_routable = aOther.m_routable; m_routable = aOther.m_routable;

View File

@ -66,6 +66,7 @@ LINE& LINE::operator=( const LINE& aOther )
m_hasVia = aOther.m_hasVia; m_hasVia = aOther.m_hasVia;
m_marker = aOther.m_marker; m_marker = aOther.m_marker;
m_rank = aOther.m_rank; m_rank = aOther.m_rank;
m_owner = aOther.m_owner;
copyLinks( &aOther ); copyLinks( &aOther );