Commit bde2a0a1 authored by unknown's avatar unknown Committed by jean-pierre charras

Pcbnew: fix issue for "one file per layer" option in "Export SVG file"

parent 1d378cfc
...@@ -279,7 +279,7 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile ) ...@@ -279,7 +279,7 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile )
if( !EnsureOutputDirectory( &outputDir, boardFilename, &reporter ) ) if( !EnsureOutputDirectory( &outputDir, boardFilename, &reporter ) )
{ {
wxString msg = wxString::Format( wxString msg = wxString::Format(
_( "Could not write plot files to folder \"%s\"." ), _( "Could not write plot files to folder '%s'." ),
GetChars( outputDir.GetPath() ) GetChars( outputDir.GetPath() )
); );
DisplayError( this, msg ); DisplayError( this, msg );
...@@ -302,7 +302,7 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile ) ...@@ -302,7 +302,7 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile )
BuildPlotFileName( &fn, outputDir.GetPath(), suffix, SVGFileExtension ); BuildPlotFileName( &fn, outputDir.GetPath(), suffix, SVGFileExtension );
m_printMaskLayer = aOnlyOneFile ? LSET( layer ) : all_selected; m_printMaskLayer = aOnlyOneFile ? all_selected : LSET( layer );
if( m_PrintBoardEdgesCtrl->IsChecked() ) if( m_PrintBoardEdgesCtrl->IsChecked() )
m_printMaskLayer.set( Edge_Cuts ); m_printMaskLayer.set( Edge_Cuts );
...@@ -310,13 +310,13 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile ) ...@@ -310,13 +310,13 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile )
if( CreateSVGFile( fn.GetFullPath() ) ) if( CreateSVGFile( fn.GetFullPath() ) )
{ {
m_messagesBox->AppendText( m_messagesBox->AppendText(
wxString::Format( _( "Plot: %s OK\n" ), GetChars( fn.GetFullPath() ) ) wxString::Format( _( "Plot: '%s' OK\n" ), GetChars( fn.GetFullPath() ) )
); );
} }
else // Error else // Error
{ {
m_messagesBox->AppendText( m_messagesBox->AppendText(
wxString::Format( _( "** Unable to create %s **\n" ), GetChars( fn.GetFullPath() ) ) wxString::Format( _( "** Unable to create '%s'**\n" ), GetChars( fn.GetFullPath() ) )
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment