diff --git a/pcbnew/router/pns_router.cpp b/pcbnew/router/pns_router.cpp index dece1e5bac..1724d1606c 100644 --- a/pcbnew/router/pns_router.cpp +++ b/pcbnew/router/pns_router.cpp @@ -303,7 +303,7 @@ void ROUTER::markViolations( NODE* aNode, ITEM_SET& aCurrent, NODE::ITEM_VECTOR& m_iface->DisplayItem( tmp.get(), -1, clearance ); // Remove the obstacle itself from the view unless we're just marking its hole - if( itemToMark->Marker() & MK_HOLE ) + if( !(itemToMark->Marker() & MK_HOLE ) ) aRemoved.push_back( itemToMark ); };