router: check type before static_cast-ing
This commit is contained in:
parent
15f1300221
commit
bc7ca08f07
|
@ -912,7 +912,10 @@ void PNS_KICAD_IFACE::SyncWorld( PNS::NODE *aWorld )
|
|||
|
||||
for( auto gitem : m_board->Drawings() )
|
||||
{
|
||||
syncGraphicalItem( aWorld, static_cast<DRAWSEGMENT*>( gitem ) );
|
||||
if ( gitem->Type() == PCB_LINE_T )
|
||||
{
|
||||
syncGraphicalItem( aWorld, static_cast<DRAWSEGMENT*>( gitem ) );
|
||||
}
|
||||
}
|
||||
|
||||
for( auto zone : m_board->Zones() )
|
||||
|
|
Loading…
Reference in New Issue