Don't add virtual items to the display

By definition virtual vias should only exist in the backend, not
affecting users

Fixes https://gitlab.com/kicad/code/kicad/issues/8788
This commit is contained in:
Seth Hillbrand 2021-07-13 15:51:07 -07:00
parent 346b876eb7
commit 3ea970f8c9
1 changed files with 3 additions and 0 deletions

View File

@ -1406,6 +1406,9 @@ void PNS_KICAD_IFACE_BASE::SetDebugDecorator( PNS::DEBUG_DECORATOR *aDec )
void PNS_KICAD_IFACE::DisplayItem( const PNS::ITEM* aItem, int aClearance, bool aEdit )
{
if( aItem->IsVirtual() )
return;
ROUTER_PREVIEW_ITEM* pitem = new ROUTER_PREVIEW_ITEM( aItem, m_view );
if( aClearance >= 0 )