Fix stupid code.

This commit is contained in:
jean-pierre charras 2021-01-23 21:17:56 +01:00
parent 15cc368918
commit a28326fb26
1 changed files with 2 additions and 5 deletions

View File

@ -529,11 +529,8 @@ void KICAD_MANAGER_FRAME::CreateNewProject( const wxFileName& aProjectFileName,
if( file.IsOpened() )
// Create a small dummy file as a stub for pcbnew:
file.Write( wxString::Format( "(kicad_pcb (version %4.4d%2.2d%2.2d) (host pcbnew)\n)",
SEXPR_BOARD_FILE_VERSION/10000,
(SEXPR_BOARD_FILE_VERSION%10000) / 100,
SEXPR_BOARD_FILE_VERSION%100
) );
file.Write( wxString::Format( "(kicad_pcb (version %d) (host pcbnew)\n)",
SEXPR_BOARD_FILE_VERSION ) );
// wxFFile dtor will close the file
}