Cleanup unit handling in the stackup drawing tool

This commit is contained in:
Ian McInerney 2021-10-08 21:37:39 +01:00
parent 3c29e68992
commit 8d71bdc3e1
1 changed files with 7 additions and 8 deletions

View File

@ -268,14 +268,13 @@ std::vector<BOARD_ITEM*> DRAWING_TOOL::DrawSpecificationStackup( const wxPoint&
t = static_cast<PCB_TEXT*>( headStyle->Duplicate() ); t = static_cast<PCB_TEXT*>( headStyle->Duplicate() );
if( m_frame->GetUserUnits() == EDA_UNITS::MILLIMETRES ) switch( m_frame->GetUserUnits() )
t->SetText( _( "Thickness (mm)" ) ); {
case EDA_UNITS::MILLIMETRES: t->SetText( _( "Thickness (mm)" ) ); break;
else if( m_frame->GetUserUnits() == EDA_UNITS::INCHES ) case EDA_UNITS::INCHES: t->SetText( _( "Thickness (inches)" ) ); break;
t->SetText( _( "Thickness (inches)" ) ); case EDA_UNITS::MILS: t->SetText( _( "Thickness (mils)" ) ); break;
default: wxFAIL_MSG( "Unhandled unit type" );
else if( m_frame->GetUserUnits() == EDA_UNITS::MILS ) }
t->SetText( _( "Thickness (mils)" ) );
colThickness.push_back( t ); colThickness.push_back( t );