Fix compatibility with wxWidgets version < 3.1.6

This commit is contained in:
jean-pierre charras 2023-01-15 20:09:19 +01:00
parent 91c5bb9175
commit e9da3e5ae9
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2014-2022 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2014-2023 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@ -143,7 +143,10 @@ void SCH_EDIT_FRAME::SaveProjectSettings()
layoutfn = wxFileName( Prj().GetProjectPath(), BASE_SCREEN::m_DrawingSheetFileName );
if( !layoutfn.FileExists() )
DS_DATA_MODEL::GetTheInstance().Save( layoutfn.GetAbsolutePath() );
{
layoutfn.MakeAbsolute();
DS_DATA_MODEL::GetTheInstance().Save( layoutfn.GetFullPath() );
}
}
GetSettingsManager()->SaveProject( fn.GetFullPath() );