Browse Source

Use "microns" as the name to be consistent with DXF specification

6.0.7
Marek Roszko 5 years ago
parent
commit
f5e9a2a6da
  1. 4
      pcbnew/import_gfx/dxf_import_plugin.cpp
  2. 2
      pcbnew/import_gfx/dxf_import_plugin.h

4
pcbnew/import_gfx/dxf_import_plugin.cpp

@ -787,7 +787,7 @@ double DXF_IMPORT_PLUGIN::getCurrentUnitScale()
scale = 1.0e-6;
break;
case DXF_IMPORT_UNITS::MICROMETERS:
case DXF_IMPORT_UNITS::MICRONS:
scale = 1.0e-3;
break;
@ -873,7 +873,7 @@ void DXF_IMPORT_PLUGIN::setVariableInt( const std::string& key, int value, int c
break;
case 13: // micrometers
m_currentUnit = DXF_IMPORT_UNITS::MICROMETERS;
m_currentUnit = DXF_IMPORT_UNITS::MICRONS;
break;
case 14: // decimeters

2
pcbnew/import_gfx/dxf_import_plugin.h

@ -147,7 +147,7 @@ enum class DXF_IMPORT_UNITS
YARDS = 10,
ANGSTROMS = 11,
NANOMETERS = 12,
MICROMETERS = 13,
MICRONS = 13,
DECIMETERS = 14,
DECAMETERS = 15,
HECTOMETERS = 16,

Loading…
Cancel
Save