Browse Source

Remove extra layer of parens.

7.0
Jeff Young 4 years ago
parent
commit
3bdae40881
  1. 16
      pcbnew/footprint.cpp

16
pcbnew/footprint.cpp

@ -2212,21 +2212,19 @@ void FOOTPRINT::CheckFootprintAttributes( const std::function<void( const wxStri
{
wxString msg;
if( likelyAttr == FP_THROUGH_HOLE )
switch( likelyAttr )
{
case FP_THROUGH_HOLE:
msg.Printf( _( "(expected 'Through hole'; actual '%s')" ), GetTypeName() );
}
else if( likelyAttr == FP_SMD )
{
break;
case FP_SMD:
msg.Printf( _( "(expected 'SMD'; actual '%s')" ), GetTypeName() );
}
else
{
break;
default:
msg.Printf( _( "(expected 'Other'; actual '%s')" ), GetTypeName() );
break;
}
msg = wxT( "(" ) + msg + wxT( ")" );
(aErrorHandler)( msg );
}
}

Loading…
Cancel
Save