mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 23:21:41 +00:00
Kicad project manager: when creating a new project, creates a better empty .sch file compatible with the new schematic legacy file parser.
This commit is contained in:
parent
7434e68876
commit
3389529643
@ -170,12 +170,14 @@ void KICAD_MANAGER_FRAME::CreateNewProject( const wxString& aPrjFullFileName,
|
||||
fn.SetExt( SchematicFileExtension );
|
||||
|
||||
// If a <project>.sch file does not exist, create a "stub" file
|
||||
// ( minimal schematic file )
|
||||
if( !fn.FileExists() )
|
||||
{
|
||||
wxFile file( fn.GetFullPath(), wxFile::write );
|
||||
|
||||
if( file.IsOpened() )
|
||||
file.Write( wxT( "EESchema Schematic File Version 2\n" ) );
|
||||
file.Write( wxT( "EESchema Schematic File Version 2\n"
|
||||
"EELAYER 25 0\nEELAYER END\n$EndSCHEMATC\n" ) );
|
||||
|
||||
// wxFile dtor will close the file
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user