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:
Jeff Young
2022-04-14 17:55:35 +01:00
parent 6ef6e37edb
commit 4ee6cfe5b6
+1 -7
View File
@@ -87,14 +87,12 @@ void SCH_EDIT_FRAME::DeleteAnnotation( ANNOTATE_SCOPE_T aAnnotateScope, bool* aA
case ANNOTATE_ALL:
{
for( const SCH_SHEET_PATH& sheet : Schematic().GetSheets() )
clearSheetAnnotation( sheet.LastScreen(), nullptr, true );
clearSheetAnnotation( sheet.LastScreen(), nullptr, false );
break;
}
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, &currentSheet, false );
break;
}
@@ -107,11 +105,7 @@ void SCH_EDIT_FRAME::DeleteAnnotation( ANNOTATE_SCOPE_T aAnnotateScope, bool* aA
for( EDA_ITEM* item : selection.Items() )
{
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, &currentSheet, false );
}
}
break;
}