Restore a side-effect that the router appears to depend on.

This commit is contained in:
Jeff Young 2020-10-06 00:07:34 +01:00
parent 35fa857fd8
commit d23d5510e7
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ public:
return Shape();
}
virtual void Mark( int aMarker ) const { m_marker |= aMarker; }
virtual void Mark( int aMarker ) const { m_marker = aMarker; }
virtual void Unmark( int aMarker = -1 ) const { m_marker &= ~aMarker; }
virtual int Marker() const { return m_marker; }

View File

@ -307,7 +307,7 @@ void ROUTER::markViolations( NODE* aNode, ITEM_SET& aCurrent, NODE::ITEM_VECTOR&
{
int clearance = aNode->GetClearance( item, obs.m_item );
std::unique_ptr<ITEM> tmp( obs.m_item->Clone() );
tmp->Mark( MK_VIOLATION );
tmp->Mark( tmp->Marker() | MK_VIOLATION );
m_iface->DisplayItem( tmp.get(), -1, clearance );
aRemoved.push_back( obs.m_item );
}