Allow DXF to be exported in either inches or millimeters

Fixes: lp:1832188
* https://bugs.launchpad.net/kicad/+bug/1832188
This commit is contained in:
Ian McInerney
2019-06-13 15:18:20 -07:00
committed by Seth Hillbrand
parent b2c848579a
commit d5f680ecd2
6 changed files with 217 additions and 114 deletions
+4 -1
View File
@@ -103,6 +103,7 @@ PCB_PLOT_PARAMS::PCB_PLOT_PARAMS()
m_plotViaOnMaskLayer = false;
m_plotMode = FILLED;
m_DXFplotPolygonMode = true;
m_DXFplotUnits = INCHES;
m_useAuxOrigin = false;
m_HPGLPenNum = 1;
m_HPGLPenSpeed = 20; // this param is always in cm/s
@@ -260,7 +261,9 @@ bool PCB_PLOT_PARAMS::IsSameAs( const PCB_PLOT_PARAMS &aPcbPlotParams, bool aCom
if( !aCompareOnlySavedPrms )
{
if( m_DXFplotPolygonMode != aPcbPlotParams.m_DXFplotPolygonMode )
return false;
return false;
if( m_DXFplotUnits != aPcbPlotParams.m_DXFplotUnits )
return false;
}
if( m_useAuxOrigin != aPcbPlotParams.m_useAuxOrigin )
return false;