Convert unit indicies to reference letters for annotation messages.

Fixes: lp:1769244
* https://bugs.launchpad.net/kicad/+bug/1769244
This commit is contained in:
Jeff Young 2018-05-06 00:21:54 +01:00
parent aa7da5dfcd
commit 5a90858a46
1 changed files with 4 additions and 4 deletions

View File

@ -199,9 +199,9 @@ void SCH_EDIT_FRAME::AnnotateComponents( bool aAnnotateSchematic,
continue;
if( comp->GetUnitCount() > 1 )
msg.Printf( _( "Updated %s (unit %d) from %s to %s" ),
msg.Printf( _( "Updated %s (unit %s) from %s to %s" ),
GetChars( comp->GetField( VALUE )->GetShownText() ),
comp->GetUnit(),
LIB_PART::SubReference( comp->GetUnit(), false ),
GetChars( prevRef ),
GetChars( newRef ) );
else
@ -213,9 +213,9 @@ void SCH_EDIT_FRAME::AnnotateComponents( bool aAnnotateSchematic,
else
{
if( comp->GetUnitCount() > 1 )
msg.Printf( _( "Annotated %s (unit %d) as %s" ),
msg.Printf( _( "Annotated %s (unit %s) as %s" ),
GetChars( comp->GetField( VALUE )->GetShownText() ),
comp->GetUnit(),
LIB_PART::SubReference( comp->GetUnit(), false ),
GetChars( newRef ) );
else
msg.Printf( _( "Annotated %s as %s" ),