Fix overly aggressive sheet instance pruning.

This commit is contained in:
Wayne Stambaugh 2024-01-23 07:44:45 -05:00
parent 5f063dd458
commit b3a36bd783
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}