Fix overly aggressive sheet instance pruning.
This commit is contained in:
parent
5f063dd458
commit
b3a36bd783
|
@ -1970,7 +1970,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
|
|||
|
||||
for( const SCH_SHEET_INSTANCE& instance : sheet->GetInstances() )
|
||||
{
|
||||
if( instance.m_ProjectName != m_frame->Prj().GetProjectName() )
|
||||
if( !hierarchy.HasPath( instance.m_Path ) )
|
||||
instancesToRemove.push_back( instance.m_Path );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue