diff --git a/eeschema/tools/ee_inspection_tool.cpp b/eeschema/tools/ee_inspection_tool.cpp
index 95e72f4e10..e6212e0e3b 100644
--- a/eeschema/tools/ee_inspection_tool.cpp
+++ b/eeschema/tools/ee_inspection_tool.cpp
@@ -225,23 +225,47 @@ void EE_INSPECTION_TOOL::checkPart( LIB_PART* aPart )
// "pin" is off grid here.
offgrid_error++;
- msg = wxString::Format( _( "Off grid pin %s \"%s\" at location (%.3f, %.3f)" ),
- pin->GetNumber(),
- pin->GetName(),
- pin->GetPosition().x / 1000.0, -pin->GetPosition().y / 1000.0 );
-
- if( aPart->GetUnitCount() > 1 )
- msg += wxString::Format( wxS( " " ) + _( "in symbol %c" ), 'A' + pin->GetUnit() - 1 );
-
- if( aPart->HasConversion() )
+ if( aPart->HasConversion() && next->GetConvert() )
{
- if( pin->GetConvert() )
- msg += wxS( " " ) + _( "of converted" );
+ if( aPart->GetUnitCount() <= 1 )
+ {
+ msg = wxString::Format( _( "Off grid pin %s \"%s\" at location "
+ "(%.3f, %.3f) of converted.
" ),
+ pin->GetNumber(),
+ pin->GetName(),
+ pin->GetPosition().x / 1000.0, -pin->GetPosition().y / 1000.0 );
+ }
else
- msg += wxS( " " ) + _( "of normal" );
+ {
+ msg = wxString::Format( _( "Off grid pin %s \"%s\" at location "
+ "(%.3f, %.3f) in symbol %c of converted.
" ),
+ pin->GetNumber(),
+ pin->GetName(),
+ pin->GetPosition().x / 1000.0, -pin->GetPosition().y / 1000.0,
+ 'A' + pin->GetUnit() - 1 );
+ }
+ }
+ else
+ {
+ if( aPart->GetUnitCount() <= 1 )
+ {
+ msg = wxString::Format( _( "Off grid pin %s \"%s\" at location "
+ "(%.3f, %.3f).
" ),
+ pin->GetNumber(),
+ pin->GetName(),
+ pin->GetPosition().x / 1000.0, -pin->GetPosition().y / 1000.0 );
+ }
+ else
+ {
+ msg = wxString::Format( _( "Off grid pin %s \"%s\" at location "
+ "(%.3f, %.3f) in symbol %c.
" ),
+ pin->GetNumber(),
+ pin->GetName(),
+ pin->GetPosition().x / 1000.0, -pin->GetPosition().y / 1000.0,
+ 'A' + pin->GetUnit() - 1 );
+ }
}
- msg += wxT( ".
" );
messages.push_back( msg );
}