Fix schematic power symbol annotation paste bug.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13405
This commit is contained in:
Wayne Stambaugh 2023-01-06 13:55:13 -05:00
parent 2399759c03
commit 411669ab88
1 changed files with 2 additions and 3 deletions

View File

@ -1956,9 +1956,8 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
for( SCH_SHEET_PATH& instance : pasteInstances )
{
// Ignore pseudo-symbols (e.g. power symbols) and symbols from a non-existant
// library.
if( libSymbol && symbol->GetRef( &instance )[0] != wxT( '#' ) )
// Ignore symbols from a non-existant library.
if( libSymbol )
{
SCH_REFERENCE schReference( symbol, libSymbol, instance );
schReference.SetSheetNumber( instance.GetVirtualPageNumber() );