diff --git a/pcbnew/pcb_plot_params.cpp b/pcbnew/pcb_plot_params.cpp index 20d470cb81..f41ca02292 100644 --- a/pcbnew/pcb_plot_params.cpp +++ b/pcbnew/pcb_plot_params.cpp @@ -32,8 +32,6 @@ #include -#define PLOT_LINEWIDTH_MIN ( 0.02 * IU_PER_MM ) // min value for default line thickness -#define PLOT_LINEWIDTH_MAX ( 2 * IU_PER_MM ) // max value for default line thickness #define PLOT_LINEWIDTH_DEFAULT ( DEFAULT_TEXT_WIDTH * IU_PER_MM ) #define HPGL_PEN_DIAMETER_MIN 0 @@ -108,7 +106,6 @@ PCB_PLOT_PARAMS::PCB_PLOT_PARAMS() m_svgPrecision = SVG_PRECISION_DEFAULT; m_svgUseInch = false; m_excludeEdgeLayer = true; - m_lineWidth = g_DrawDefaultLineThickness; m_plotFrameRef = false; m_plotViaOnMaskLayer = false; m_plotMode = FILLED; @@ -204,8 +201,6 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter, aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_excludeedgelayer ), m_excludeEdgeLayer ? trueStr : falseStr ); - aFormatter->Print( aNestLevel+1, "(%s %f)\n", getTokenName( T_linewidth ), - m_lineWidth / IU_PER_MM ); aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_plotframeref ), m_plotFrameRef ? trueStr : falseStr ); aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_viasonmask ), @@ -277,8 +272,6 @@ bool PCB_PLOT_PARAMS::IsSameAs( const PCB_PLOT_PARAMS &aPcbPlotParams, bool aCom return false; if( m_excludeEdgeLayer != aPcbPlotParams.m_excludeEdgeLayer ) return false; - if( m_lineWidth != aPcbPlotParams.m_lineWidth ) - return false; if( m_plotFrameRef != aPcbPlotParams.m_plotFrameRef ) return false; if( m_plotViaOnMaskLayer != aPcbPlotParams.m_plotViaOnMaskLayer ) diff --git a/pcbnew/pcb_plot_params.h b/pcbnew/pcb_plot_params.h index 199240f1c5..18365d073e 100644 --- a/pcbnew/pcb_plot_params.h +++ b/pcbnew/pcb_plot_params.h @@ -75,9 +75,6 @@ private: /// Choose how represent text with PS, PDF and DXF drivers PLOT_TEXT_MODE m_textMode; - /// The default line width (used to draw items having no defined width) - int m_lineWidth; - /// When true set the scale to fit the board in the page bool m_autoScale; diff --git a/pcbnew/plot_board_layers.cpp b/pcbnew/plot_board_layers.cpp index 12973b6f0b..1e141b480b 100644 --- a/pcbnew/plot_board_layers.cpp +++ b/pcbnew/plot_board_layers.cpp @@ -1120,6 +1120,7 @@ PLOTTER* StartPlotBoard( BOARD *aBoard, PCB_PLOT_PARAMS *aPlotOpts, int aLayer, KIGFX::PCB_RENDER_SETTINGS* renderSettings = new KIGFX::PCB_RENDER_SETTINGS(); renderSettings->LoadColors( aPlotOpts->ColorSettings() ); + renderSettings->SetDefaultPenWidth( Millimeter2iu( 0.0212 ) ); // Hairline at 1200dpi plotter->SetRenderSettings( renderSettings ); // Compute the viewport and set the other options