Ensure symbols in subsheets are added to multi-unit map before re-annotating
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14918
This commit is contained in:
parent
8abb701727
commit
6d3f512e15
|
@ -272,12 +272,19 @@ void SCH_EDIT_FRAME::AnnotateSymbols( SCH_COMMIT* aCommit, ANNOTATE_SCOPE_T aAn
|
||||||
|
|
||||||
case ANNOTATE_CURRENT_SHEET:
|
case ANNOTATE_CURRENT_SHEET:
|
||||||
currentSheet.GetMultiUnitSymbols( lockedSymbols );
|
currentSheet.GetMultiUnitSymbols( lockedSymbols );
|
||||||
|
|
||||||
|
if( aRecursive )
|
||||||
|
subSheets.GetMultiUnitSymbols( lockedSymbols );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ANNOTATE_SELECTION:
|
case ANNOTATE_SELECTION:
|
||||||
for( SCH_SYMBOL* symbol : selectedSymbols )
|
for( SCH_SYMBOL* symbol : selectedSymbols )
|
||||||
currentSheet.AppendMultiUnitSymbol( lockedSymbols, symbol );
|
currentSheet.AppendMultiUnitSymbol( lockedSymbols, symbol );
|
||||||
|
|
||||||
|
if( aRecursive )
|
||||||
|
selectedSheets.GetMultiUnitSymbols( lockedSymbols );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue