From e9da3e5ae9885efe014e04e4c1d978bff0dc2eae Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 15 Jan 2023 20:09:19 +0100 Subject: [PATCH] Fix compatibility with wxWidgets version < 3.1.6 --- eeschema/eeschema_config.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eeschema/eeschema_config.cpp b/eeschema/eeschema_config.cpp index 35a1a3d63d..3f6cab1783 100644 --- a/eeschema/eeschema_config.cpp +++ b/eeschema/eeschema_config.cpp @@ -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() );