Fix schematic power symbol annotation paste bug.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13405
This commit is contained in:
parent
2399759c03
commit
411669ab88
|
@ -1956,9 +1956,8 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
for( SCH_SHEET_PATH& instance : pasteInstances )
|
for( SCH_SHEET_PATH& instance : pasteInstances )
|
||||||
{
|
{
|
||||||
// Ignore pseudo-symbols (e.g. power symbols) and symbols from a non-existant
|
// Ignore symbols from a non-existant library.
|
||||||
// library.
|
if( libSymbol )
|
||||||
if( libSymbol && symbol->GetRef( &instance )[0] != wxT( '#' ) )
|
|
||||||
{
|
{
|
||||||
SCH_REFERENCE schReference( symbol, libSymbol, instance );
|
SCH_REFERENCE schReference( symbol, libSymbol, instance );
|
||||||
schReference.SetSheetNumber( instance.GetVirtualPageNumber() );
|
schReference.SetSheetNumber( instance.GetVirtualPageNumber() );
|
||||||
|
|
Loading…
Reference in New Issue