Correct m_board check location in PNS_KICAD_IFACE_BASE::SyncWorld

This commit is contained in:
Marek Roszko 2021-02-01 11:58:22 -05:00
parent 47ada0ffba
commit dc4b73fcef
1 changed files with 4 additions and 4 deletions

View File

@ -1211,16 +1211,16 @@ bool PNS_KICAD_IFACE::IsItemVisible( const PNS::ITEM* aItem ) const
void PNS_KICAD_IFACE_BASE::SyncWorld( PNS::NODE *aWorld )
{
int worstClearance = m_board->GetDesignSettings().GetBiggestClearanceValue();
m_world = aWorld;
if( !m_board )
{
wxLogTrace( "PNS", "No board attached, aborting sync." );
return;
}
int worstClearance = m_board->GetDesignSettings().GetBiggestClearanceValue();
m_world = aWorld;
for( BOARD_ITEM* gitem : m_board->Drawings() )
{
if ( gitem->Type() == PCB_SHAPE_T )