Code brevity.
This commit is contained in:
@@ -104,8 +104,8 @@ PCB_PLOT_PARAMS::PCB_PLOT_PARAMS()
|
||||
m_svgPrecision = SVG_PRECISION_DEFAULT;
|
||||
m_plotDrawingSheet = false;
|
||||
m_plotMode = FILLED;
|
||||
m_DXFPolygonMode = true;
|
||||
m_DXFUnits = DXF_UNITS::INCHES;
|
||||
m_DXFPolygonMode = true;
|
||||
m_DXFUnits = DXF_UNITS::IN;
|
||||
m_useAuxOrigin = false;
|
||||
m_HPGLPenNum = 1;
|
||||
m_HPGLPenSpeed = 20; // this param is always in cm/s
|
||||
@@ -219,7 +219,7 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter ) const
|
||||
// DXF options
|
||||
KICAD_FORMAT::FormatBool( aFormatter, getTokenName( T_dxfpolygonmode ), m_DXFPolygonMode );
|
||||
KICAD_FORMAT::FormatBool( aFormatter, getTokenName( T_dxfimperialunits ),
|
||||
m_DXFUnits == DXF_UNITS::INCHES );
|
||||
m_DXFUnits == DXF_UNITS::IN );
|
||||
KICAD_FORMAT::FormatBool( aFormatter, getTokenName( T_dxfusepcbnewfont ),
|
||||
m_textMode != PLOT_TEXT_MODE::NATIVE );
|
||||
|
||||
@@ -776,8 +776,7 @@ void PCB_PLOT_PARAMS_PARSER::Parse( PCB_PLOT_PARAMS* aPcbPlotParams )
|
||||
break;
|
||||
|
||||
case T_dxfimperialunits:
|
||||
aPcbPlotParams->m_DXFUnits = parseBool() ? DXF_UNITS::INCHES
|
||||
: DXF_UNITS::MILLIMETERS;
|
||||
aPcbPlotParams->m_DXFUnits = parseBool() ? DXF_UNITS::IN : DXF_UNITS::MM;
|
||||
break;
|
||||
|
||||
case T_dxfusepcbnewfont:
|
||||
|
||||
Reference in New Issue
Block a user