Try to fix an ambiguous cast for MSVC

This commit is contained in:
jean-pierre charras 2025-07-23 18:03:37 +02:00
parent eb473012a6
commit 4248f26bae

View File

@ -306,9 +306,9 @@ wxString LIB_SYMBOL::GetUnitDisplayName( int aUnit, bool aLabel ) const
wxString LIB_SYMBOL::GetBodyStyleDescription( int aBodyStyle, bool aLabel ) const
{
if( aBodyStyle == BODY_STYLE::DEMORGAN )
return aLabel ? _( "Alternate" ) : _HKI( "Alternate" );
return aLabel ? _( "Alternate" ) : wxString( _HKI( "Alternate" ) );
else if( aBodyStyle == BODY_STYLE::BASE )
return aLabel ? _( "Standard" ) : _HKI( "Standard" );
return aLabel ? _( "Standard" ) : wxString( _HKI( "Standard" ) );
else
return wxT( "?" );
}