From 20def236bfb09efba76fdeff382408ef3cfecc58 Mon Sep 17 00:00:00 2001 From: JamesJCode <13408010-JamesJCode@users.noreply.gitlab.com> Date: Thu, 2 Jan 2025 22:12:24 +0000 Subject: [PATCH] Don't strip last directory name when plotting --- pcbnew/pcb_plotter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcb_plotter.cpp b/pcbnew/pcb_plotter.cpp index 298bfb1ff3..075d70e8f5 100644 --- a/pcbnew/pcb_plotter.cpp +++ b/pcbnew/pcb_plotter.cpp @@ -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)