Don't show preview for lib-item loaded on to canvas.
This commit is contained in:
parent
e6b0a6abca
commit
61bcf46ffe
|
@ -366,7 +366,7 @@ bool SYMBOL_TREE_SYNCHRONIZING_ADAPTER::HasPreview( const wxDataViewItem& aItem
|
|||
LIB_TREE_NODE* node = ToNode( aItem );
|
||||
wxCHECK( node, false );
|
||||
|
||||
return node->m_Type == LIB_TREE_NODE::LIBID;
|
||||
return node->m_Type == LIB_TREE_NODE::LIBID && node->m_LibId != m_frame->GetTargetLibId();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -310,7 +310,7 @@ bool FP_TREE_SYNCHRONIZING_ADAPTER::HasPreview( const wxDataViewItem& aItem )
|
|||
LIB_TREE_NODE* node = ToNode( aItem );
|
||||
wxCHECK( node, false );
|
||||
|
||||
return node->m_Type == LIB_TREE_NODE::LIBID;
|
||||
return node->m_Type == LIB_TREE_NODE::LIBID && node->m_LibId != m_frame->GetLoadedFPID();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue