Browse Source

Try to fix an ambiguous cast for MSVC (round 2)

pull/18/head
jean-pierre charras 3 months ago
parent
commit
998806b814
  1. 4
      eeschema/sch_item.cpp

4
eeschema/sch_item.cpp

@ -190,7 +190,7 @@ void SCH_ITEM::SetUnitProp( const wxString& aUnit )
wxString SCH_ITEM::GetUnitDisplayName( int aUnit, bool aLabel ) const
{
if( aUnit == 0 )
return aLabel ? _( "All units" ) : _HKI( "All units" );
return aLabel ? _( "All units" ) : wxString( _HKI( "All units" ) );
else if( const SYMBOL* symbol = GetParentSymbol() )
return symbol->GetUnitDisplayName( aUnit, aLabel );
@ -201,7 +201,7 @@ wxString SCH_ITEM::GetUnitDisplayName( int aUnit, bool aLabel ) const
wxString SCH_ITEM::GetBodyStyleDescription( int aBodyStyle, bool aLabel ) const
{
if( aBodyStyle == 0 )
return aLabel ? _( "All body styles" ) : _HKI( "All body styles" );
return aLabel ? _( "All body styles" ) : wxString( _HKI( "All body styles" ) );
else if( const SYMBOL* symbol = GetParentSymbol() )
return symbol->GetBodyStyleDescription( aBodyStyle, aLabel );

Loading…
Cancel
Save