mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
pcbnew: move extension ensurance up a level
This commit is contained in:
parent
8c2a6fc818
commit
372a9c3f51
@ -441,7 +441,9 @@ bool PCB_EDIT_FRAME::Files_io_from_id( int id )
|
||||
{
|
||||
if( id == ID_COPY_BOARD_AS )
|
||||
{
|
||||
success = SavePcbCopy( filename, createProject );
|
||||
success = SavePcbCopy(
|
||||
EnsureFileExtension( filename, FILEEXT::KiCadPcbFileExtension ),
|
||||
createProject );
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1124,7 +1126,7 @@ bool PCB_EDIT_FRAME::SavePcbFile( const wxString& aFileName, bool addToHistory,
|
||||
|
||||
bool PCB_EDIT_FRAME::SavePcbCopy( const wxString& aFileName, bool aCreateProject, bool aHeadless )
|
||||
{
|
||||
wxFileName pcbFileName( EnsureFileExtension( aFileName, FILEEXT::KiCadPcbFileExtension ) );
|
||||
wxFileName pcbFileName( aFileName );
|
||||
|
||||
if( !IsWritable( pcbFileName ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user