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:
parent
346b876eb7
commit
3ea970f8c9
|
@ -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 )
|
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 );
|
ROUTER_PREVIEW_ITEM* pitem = new ROUTER_PREVIEW_ITEM( aItem, m_view );
|
||||||
|
|
||||||
if( aClearance >= 0 )
|
if( aClearance >= 0 )
|
||||||
|
|
Loading…
Reference in New Issue