Correct m_board check location in PNS_KICAD_IFACE_BASE::SyncWorld
This commit is contained in:
parent
47ada0ffba
commit
dc4b73fcef
|
@ -1211,16 +1211,16 @@ bool PNS_KICAD_IFACE::IsItemVisible( const PNS::ITEM* aItem ) const
|
||||||
|
|
||||||
void PNS_KICAD_IFACE_BASE::SyncWorld( PNS::NODE *aWorld )
|
void PNS_KICAD_IFACE_BASE::SyncWorld( PNS::NODE *aWorld )
|
||||||
{
|
{
|
||||||
int worstClearance = m_board->GetDesignSettings().GetBiggestClearanceValue();
|
|
||||||
|
|
||||||
m_world = aWorld;
|
|
||||||
|
|
||||||
if( !m_board )
|
if( !m_board )
|
||||||
{
|
{
|
||||||
wxLogTrace( "PNS", "No board attached, aborting sync." );
|
wxLogTrace( "PNS", "No board attached, aborting sync." );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int worstClearance = m_board->GetDesignSettings().GetBiggestClearanceValue();
|
||||||
|
|
||||||
|
m_world = aWorld;
|
||||||
|
|
||||||
for( BOARD_ITEM* gitem : m_board->Drawings() )
|
for( BOARD_ITEM* gitem : m_board->Drawings() )
|
||||||
{
|
{
|
||||||
if ( gitem->Type() == PCB_SHAPE_T )
|
if ( gitem->Type() == PCB_SHAPE_T )
|
||||||
|
|
Loading…
Reference in New Issue