Don't return a lib-tree symbol if the lib-tree is hidden.
This commit is contained in:
parent
0d903d43a0
commit
77d4704b45
|
@ -965,13 +965,13 @@ int SYMBOL_EDIT_FRAME::GetTreeLIBIDs( std::vector<LIB_ID>& aSelection ) const
|
||||||
|
|
||||||
|
|
||||||
LIB_SYMBOL* SYMBOL_EDIT_FRAME::getTargetSymbol() const
|
LIB_SYMBOL* SYMBOL_EDIT_FRAME::getTargetSymbol() const
|
||||||
|
{
|
||||||
|
if( IsSymbolTreeShown() )
|
||||||
{
|
{
|
||||||
LIB_ID libId = GetTreeLIBID();
|
LIB_ID libId = GetTreeLIBID();
|
||||||
|
|
||||||
if( libId.IsValid() )
|
if( libId.IsValid() )
|
||||||
{
|
return m_libMgr->GetAlias( libId.GetLibItemName(), libId.GetLibNickname() );
|
||||||
LIB_SYMBOL* alias = m_libMgr->GetAlias( libId.GetLibItemName(), libId.GetLibNickname() );
|
|
||||||
return alias;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_symbol;
|
return m_symbol;
|
||||||
|
|
Loading…
Reference in New Issue