Cleanup unit handling in the stackup drawing tool
This commit is contained in:
parent
3c29e68992
commit
8d71bdc3e1
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue