Eeschema, backannotate: fix minor issues in displayed messages.

Fixes #11530
https://gitlab.com/kicad/code/kicad/issues/11530
This commit is contained in:
jean-pierre charras 2022-05-03 09:20:46 +02:00
parent a56955443f
commit 3f470359a2
1 changed files with 7 additions and 9 deletions

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application.
* *
* Copyright (C) 2019 Alexander Shuklin <Jasuramme@gmail.com> * Copyright (C) 2019 Alexander Shuklin <Jasuramme@gmail.com>
* Copyright (C) 2004-2021 KiCad Developers, see AUTHORS.txt for contributors. * Copyright (C) 2004-2022 KiCad Developers, see AUTHORS.txt for contributors.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@ -291,7 +291,7 @@ void BACK_ANNOTATE::checkForUnusedSymbols()
wxString msg = wxString::Format( _( "Footprint '%s' is not present on PCB. " wxString msg = wxString::Format( _( "Footprint '%s' is not present on PCB. "
"Corresponding symbols in schematic must be " "Corresponding symbols in schematic must be "
"manually deleted (if desired)." ), "manually deleted (if desired)." ),
m_refs[i].GetFullRef() ); m_refs[i].GetRef() );
m_reporter.ReportTail( msg, RPT_SEVERITY_WARNING ); m_reporter.ReportTail( msg, RPT_SEVERITY_WARNING );
} }
@ -328,7 +328,7 @@ void BACK_ANNOTATE::applyChangelist()
{ {
++m_changesCount; ++m_changesCount;
msg.Printf( _( "Change '%s' reference designator to '%s'." ), msg.Printf( _( "Change '%s' reference designator to '%s'." ),
ref.GetFullRef(), ref.GetRef(),
fpData.m_ref ); fpData.m_ref );
if( !m_dryRun ) if( !m_dryRun )
@ -345,7 +345,7 @@ void BACK_ANNOTATE::applyChangelist()
{ {
++m_changesCount; ++m_changesCount;
msg.Printf( _( "Change %s footprint assignment from '%s' to '%s'." ), msg.Printf( _( "Change %s footprint assignment from '%s' to '%s'." ),
ref.GetFullRef(), ref.GetRef(),
oldFootprint, oldFootprint,
fpData.m_footprint ); fpData.m_footprint );
@ -363,7 +363,7 @@ void BACK_ANNOTATE::applyChangelist()
{ {
++m_changesCount; ++m_changesCount;
msg.Printf( _( "Change %s value from '%s' to '%s'." ), msg.Printf( _( "Change %s value from '%s' to '%s'." ),
ref.GetFullRef(), ref.GetRef(),
oldValue, oldValue,
fpData.m_value ); fpData.m_value );
@ -388,7 +388,7 @@ void BACK_ANNOTATE::applyChangelist()
if( !pin ) if( !pin )
{ {
msg.Printf( _( "Cannot find %s pin '%s'." ), msg.Printf( _( "Cannot find %s pin '%s'." ),
ref.GetFullRef(), ref.GetRef(),
pinNumber ); pinNumber );
m_reporter.ReportHead( msg, RPT_SEVERITY_ERROR ); m_reporter.ReportHead( msg, RPT_SEVERITY_ERROR );
@ -399,7 +399,7 @@ void BACK_ANNOTATE::applyChangelist()
if( connection && connection->Name( true ) != shortNetName ) if( connection && connection->Name( true ) != shortNetName )
{ {
processNetNameChange( ref.GetFullRef(), pin, connection, processNetNameChange( ref.GetRef(), pin, connection,
connection->Name( true ), shortNetName ); connection->Name( true ), shortNetName );
} }
} }
@ -413,8 +413,6 @@ void BACK_ANNOTATE::applyChangelist()
m_frame->RecalculateConnections( NO_CLEANUP ); m_frame->RecalculateConnections( NO_CLEANUP );
m_frame->UpdateNetHighlightStatus(); m_frame->UpdateNetHighlightStatus();
} }
m_reporter.ReportHead( msg, RPT_SEVERITY_INFO );
} }