7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-03-30 06:06:55 +00:00

Must assign extension to keep from stripping last '.' section.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20065
This commit is contained in:
Jeff Young 2025-03-20 09:43:59 +00:00
parent 0aa4f11970
commit d3f57fac5a
2 changed files with 2 additions and 3 deletions

View File

@ -1334,8 +1334,7 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event )
for( size_t i = 0; i < count; i++ )
{
int index = plotOnAllLayers.Item( i );
PCB_LAYER_ID client_layer =
getLayerClientData( m_plotAllLayersList, index )->Layer();
PCB_LAYER_ID client_layer = getLayerClientData( m_plotAllLayersList, index )->Layer();
commonLayers.push_back( client_layer );
}

View File

@ -146,7 +146,7 @@ bool PCB_PLOTTER::Plot( const wxString& aOutputPath,
else
{
wxFileName brdFn = m_board->GetFileName();
fn.Assign( aOutputPath, brdFn.GetName() );
fn.Assign( aOutputPath, brdFn.GetName(), fileExt );
// Use Gerber Extensions based on layer number
// (See http://en.wikipedia.org/wiki/Gerber_File)