Eeschema: fix sheet schematic file naming bug.
Fixes lp:1750468 https://bugs.launchpad.net/kicad/+bug/1750468
This commit is contained in:
parent
961ddd107d
commit
df2819e5bc
|
@ -2,7 +2,7 @@
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2004-2017 KiCad Developers, see change_log.txt for contributors.
|
* Copyright (C) 2004-2018 KiCad Developers, see change_log.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -249,6 +249,7 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, SCH_SHEET_PATH* aHierarchy )
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFileName userFileName = dlg.GetFileName();
|
wxFileName userFileName = dlg.GetFileName();
|
||||||
|
userFileName.SetExt( SchematicFileExtension );
|
||||||
aSheet->SetFileName( userFileName.GetFullPath( wxPATH_UNIX ) );
|
aSheet->SetFileName( userFileName.GetFullPath( wxPATH_UNIX ) );
|
||||||
|
|
||||||
if( useScreen )
|
if( useScreen )
|
||||||
|
|
Loading…
Reference in New Issue