Don't forget intersheet refs when collecting non-view items.
Fixes https://gitlab.com/kicad/code/kicad/issues/7819
This commit is contained in:
parent
3ab1ef7b83
commit
22b4a74bfa
|
@ -1254,6 +1254,16 @@ bool EE_SELECTION_TOOL::selectMultiple()
|
||||||
for( SCH_FIELD& field : symbol->GetFields() )
|
for( SCH_FIELD& field : symbol->GetFields() )
|
||||||
children.emplace_back( KIGFX::VIEW::LAYER_ITEM_PAIR( &field, layer ) );
|
children.emplace_back( KIGFX::VIEW::LAYER_ITEM_PAIR( &field, layer ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SCH_GLOBALLABEL* gLabel = dynamic_cast<SCH_GLOBALLABEL*>( pair.first );
|
||||||
|
|
||||||
|
if( gLabel )
|
||||||
|
{
|
||||||
|
int layer = pair.second;
|
||||||
|
SCH_FIELD* intersheetRef = gLabel->GetIntersheetRefs();
|
||||||
|
|
||||||
|
children.emplace_back( KIGFX::VIEW::LAYER_ITEM_PAIR( intersheetRef, layer ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
selectedItems.insert( selectedItems.end(), children.begin(), children.end() );
|
selectedItems.insert( selectedItems.end(), children.begin(), children.end() );
|
||||||
|
|
Loading…
Reference in New Issue