pcbnew: Clean up warnings with unit handling in the DXF export

(cherry picked from commit ff9d899ae0)
This commit is contained in:
Ian McInerney
2019-07-10 16:47:12 +02:00
committed by Wayne Stambaugh
parent 09d7d0f1bc
commit 40ba502853
6 changed files with 18 additions and 24 deletions
+3 -3
View File
@@ -122,18 +122,18 @@ static wxString getDXFColorName( COLOR4D aColor )
}
void DXF_PLOTTER::SetUnits( Units aUnit )
void DXF_PLOTTER::SetUnits( DXF_UNITS aUnit )
{
m_plotUnits = aUnit;
switch( aUnit )
{
case MILIMETERS:
case DXF_UNIT_MILLIMETERS:
m_unitScalingFactor = 0.00254;
m_measurementDirective = 1;
break;
case INCHES:
case DXF_UNIT_INCHES:
default:
m_unitScalingFactor = 0.0001;
m_measurementDirective = 0;