Schematic: actually check for hover on duplicate

This commit is contained in:
Mike Williams 2023-01-18 13:52:49 -05:00
parent 144cd0b7f2
commit 171cffec28
1 changed files with 1 additions and 1 deletions

View File

@ -1213,7 +1213,7 @@ bool SCH_EDITOR_CONTROL::doCopy( bool aUseDuplicateClipboard )
SCH_SHEET* sheet = (SCH_SHEET*) item; SCH_SHEET* sheet = (SCH_SHEET*) item;
m_supplementaryClipboard[ sheet->GetFileName() ] = sheet->GetScreen(); m_supplementaryClipboard[ sheet->GetFileName() ] = sheet->GetScreen();
} }
else if( item->Type() == SCH_FIELD_T ) else if( item->Type() == SCH_FIELD_T && selection.IsHover() )
{ {
// Most of the time the user is trying to duplicate the parent symbol // Most of the time the user is trying to duplicate the parent symbol
// and the field text is in it // and the field text is in it