Don't strip last directory name when plotting

This commit is contained in:
JamesJCode
2025-01-02 22:12:24 +00:00
parent 7654c7f6e1
commit 20def236bf
+2 -2
View File
@@ -82,10 +82,10 @@ bool PCB_PLOTTER::Plot( const wxString& aOutputPath, const LSEQ& aLayersToPlot,
wxString layerName = m_board->GetLayerName( layer );
wxFileName fn( aOutputPath );
wxFileName fn;
wxFileName brdFn = m_board->GetFileName();
wxString msg;
fn.SetName( brdFn.GetName() );
fn.Assign( aOutputPath, brdFn.GetName() );
// Use Gerber Extensions based on layer number
// (See http://en.wikipedia.org/wiki/Gerber_File)