Disable all use of the default instance reference prefix for annotation.
Fixes https://gitlab.com/kicad/code/kicad/issues/11385
This commit is contained in:
parent
6ef6e37edb
commit
4ee6cfe5b6
|
@ -87,14 +87,12 @@ void SCH_EDIT_FRAME::DeleteAnnotation( ANNOTATE_SCOPE_T aAnnotateScope, bool* aA
|
||||||
case ANNOTATE_ALL:
|
case ANNOTATE_ALL:
|
||||||
{
|
{
|
||||||
for( const SCH_SHEET_PATH& sheet : Schematic().GetSheets() )
|
for( const SCH_SHEET_PATH& sheet : Schematic().GetSheets() )
|
||||||
clearSheetAnnotation( sheet.LastScreen(), nullptr, true );
|
clearSheetAnnotation( sheet.LastScreen(), nullptr, false );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ANNOTATE_CURRENT_SHEET:
|
case ANNOTATE_CURRENT_SHEET:
|
||||||
{
|
{
|
||||||
// One could make an argument that this should clear prefixes. I have no idea what
|
|
||||||
// the right answer is.
|
|
||||||
clearSheetAnnotation( screen, ¤tSheet, false );
|
clearSheetAnnotation( screen, ¤tSheet, false );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -107,11 +105,7 @@ void SCH_EDIT_FRAME::DeleteAnnotation( ANNOTATE_SCOPE_T aAnnotateScope, bool* aA
|
||||||
for( EDA_ITEM* item : selection.Items() )
|
for( EDA_ITEM* item : selection.Items() )
|
||||||
{
|
{
|
||||||
if( item->Type() == SCH_SYMBOL_T )
|
if( item->Type() == SCH_SYMBOL_T )
|
||||||
{
|
|
||||||
// One could make an argument that this should clear prefixes. I have no idea
|
|
||||||
// what the right answer is.
|
|
||||||
clearSymbolAnnotation( item, screen, ¤tSheet, false );
|
clearSymbolAnnotation( item, screen, ¤tSheet, false );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue