From 694c5ebae42dbe1d8e37c4ea63fc2542289e969c Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 23 Jul 2014 15:01:23 +0200 Subject: [PATCH] Pcbnew: fix issue for "one file per layer" option in "Export SVG file" --- pcbnew/dialogs/dialog_SVG_print.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/dialogs/dialog_SVG_print.cpp b/pcbnew/dialogs/dialog_SVG_print.cpp index 6ba70d8baa..5e90b3bfa3 100644 --- a/pcbnew/dialogs/dialog_SVG_print.cpp +++ b/pcbnew/dialogs/dialog_SVG_print.cpp @@ -279,7 +279,7 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile ) if( !EnsureOutputDirectory( &outputDir, boardFilename, &reporter ) ) { wxString msg = wxString::Format( - _( "Could not write plot files to folder \"%s\"." ), + _( "Could not write plot files to folder '%s'." ), GetChars( outputDir.GetPath() ) ); DisplayError( this, msg ); @@ -302,7 +302,7 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile ) BuildPlotFileName( &fn, outputDir.GetPath(), suffix, SVGFileExtension ); - m_printMaskLayer = aOnlyOneFile ? LSET( layer ) : all_selected; + m_printMaskLayer = aOnlyOneFile ? all_selected : LSET( layer ); if( m_PrintBoardEdgesCtrl->IsChecked() ) m_printMaskLayer.set( Edge_Cuts ); @@ -310,13 +310,13 @@ void DIALOG_SVG_PRINT::ExportSVGFile( bool aOnlyOneFile ) if( CreateSVGFile( fn.GetFullPath() ) ) { m_messagesBox->AppendText( - wxString::Format( _( "Plot: %s OK\n" ), GetChars( fn.GetFullPath() ) ) + wxString::Format( _( "Plot: '%s' OK\n" ), GetChars( fn.GetFullPath() ) ) ); } else // Error { m_messagesBox->AppendText( - wxString::Format( _( "** Unable to create %s **\n" ), GetChars( fn.GetFullPath() ) ) + wxString::Format( _( "** Unable to create '%s'**\n" ), GetChars( fn.GetFullPath() ) ) ); }