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() );
if( m_frame->GetUserUnits() == EDA_UNITS::MILLIMETRES )
t->SetText( _( "Thickness (mm)" ) );
else if( m_frame->GetUserUnits() == EDA_UNITS::INCHES )
t->SetText( _( "Thickness (inches)" ) );
else if( m_frame->GetUserUnits() == EDA_UNITS::MILS )
t->SetText( _( "Thickness (mils)" ) );
switch( m_frame->GetUserUnits() )
{
case EDA_UNITS::MILLIMETRES: t->SetText( _( "Thickness (mm)" ) ); break;
case EDA_UNITS::INCHES: t->SetText( _( "Thickness (inches)" ) ); break;
case EDA_UNITS::MILS: t->SetText( _( "Thickness (mils)" ) ); break;
default: wxFAIL_MSG( "Unhandled unit type" );
}
colThickness.push_back( t );