parent
7e58f1aa9f
commit
f691828c8f
|
@ -535,7 +535,11 @@ LIBEVAL::VALUE PCB_EXPR_VAR_REF::GetValue( LIBEVAL::CONTEXT* aCtx )
|
||||||
return PCB_LAYER_VALUE( context->GetLayer() );
|
return PCB_LAYER_VALUE( context->GetLayer() );
|
||||||
}
|
}
|
||||||
|
|
||||||
BOARD_ITEM* item = const_cast<BOARD_ITEM*>( GetObject( aCtx ) );
|
BOARD_ITEM* item = GetObject( aCtx );
|
||||||
|
|
||||||
|
if( !item )
|
||||||
|
return LIBEVAL::VALUE();
|
||||||
|
|
||||||
auto it = m_matchingTypes.find( TYPE_HASH( *item ) );
|
auto it = m_matchingTypes.find( TYPE_HASH( *item ) );
|
||||||
|
|
||||||
if( it == m_matchingTypes.end() )
|
if( it == m_matchingTypes.end() )
|
||||||
|
|
Loading…
Reference in New Issue