diff --git a/pcbnew/dialogs/dialog_plot.cpp b/pcbnew/dialogs/dialog_plot.cpp
index 401eed6065..bc13af8558 100644
--- a/pcbnew/dialogs/dialog_plot.cpp
+++ b/pcbnew/dialogs/dialog_plot.cpp
@@ -94,6 +94,10 @@ void DIALOG_PLOT::Init_Dialog()
case PLOT_FORMAT_HPGL:
m_plotFormatOpt->SetSelection( 4 );
break;
+
+ case PLOT_FORMAT_PDF:
+ m_plotFormatOpt->SetSelection( 5 );
+ break;
}
msg = ReturnStringFromValue( g_UserUnit, m_brdSettings.m_SolderMaskMargin, true );
@@ -610,7 +614,7 @@ void DIALOG_PLOT::applyPlotSettings()
{
msg = ReturnStringFromValue( g_UserUnit, tempOptions.GetLineWidth() );
m_linesWidth->SetValue( msg );
- msg.Printf( _( "Default linewidth constrained!\n" ) );
+ msg.Printf( _( "Default line width constrained!\n" ) );
m_messagesBox->AppendText( msg );
}
@@ -790,12 +794,13 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event )
LOCALE_IO toggle;
BOARD *board = m_parent->GetBoard();
- PLOTTER *plotter = StartPlotBoard(board, &m_plotOpts,
- fn.GetFullPath(),
- wxEmptyString );
+ PLOTTER *plotter = StartPlotBoard( board, &m_plotOpts,
+ fn.GetFullPath(),
+ wxEmptyString );
// Print diags in messages box:
wxString msg;
+
if( plotter )
{
PlotOneBoardLayer( board, plotter, layer, m_plotOpts );
diff --git a/pcbnew/dialogs/dialog_plot_base.cpp b/pcbnew/dialogs/dialog_plot_base.cpp
index d83691bd4c..7d1e54bec4 100644
--- a/pcbnew/dialogs/dialog_plot_base.cpp
+++ b/pcbnew/dialogs/dialog_plot_base.cpp
@@ -28,7 +28,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
m_staticText121->Wrap( -1 );
bSizer27->Add( m_staticText121, 0, wxTOP, 5 );
- wxString m_plotFormatOptChoices[] = { _("Gerber"), _("Postscript"), _("SVG"), _("DXF"), _("HPGL") };
+ wxString m_plotFormatOptChoices[] = { _("Gerber"), _("Postscript"), _("SVG"), _("DXF"), _("HPGL"), _("PDF") };
int m_plotFormatOptNChoices = sizeof( m_plotFormatOptChoices ) / sizeof( wxString );
m_plotFormatOpt = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_plotFormatOptNChoices, m_plotFormatOptChoices, 0 );
m_plotFormatOpt->SetSelection( 0 );
@@ -186,7 +186,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
m_PlotOptionsSizer->Add( sbOptionsSizer, 0, wxALL|wxEXPAND, 3 );
wxStaticBoxSizer* sbSizerSoldMaskLayerOpt;
- sbSizerSoldMaskLayerOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Solder mask current settings:") ), wxVERTICAL );
+ sbSizerSoldMaskLayerOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Current solder mask settings:") ), wxVERTICAL );
wxFlexGridSizer* fgSizerSoldMaskOpts;
fgSizerSoldMaskOpts = new wxFlexGridSizer( 2, 2, 0, 0 );
diff --git a/pcbnew/dialogs/dialog_plot_base.fbp b/pcbnew/dialogs/dialog_plot_base.fbp
index 07dfeb0af1..2137a6813a 100644
--- a/pcbnew/dialogs/dialog_plot_base.fbp
+++ b/pcbnew/dialogs/dialog_plot_base.fbp
@@ -219,7 +219,7 @@
1
0
- "Gerber" "Postscript" "SVG" "DXF" "HPGL"
+ "Gerber" "Postscript" "SVG" "DXF" "HPGL" "PDF"
1
1
@@ -2318,7 +2318,7 @@
1
-