Import child sheets relative to project, not parent.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17785

(cherry picked from commit 8e855156c8)
This commit is contained in:
Jeff Young 2024-06-04 17:47:26 +01:00
parent 78cbb8e994
commit dc24d13fef
1 changed files with 1 additions and 1 deletions

View File

@ -973,7 +973,7 @@ void SCH_IO_EAGLE::loadSheet( wxXmlNode* aSheetNode, int aSheetIndex )
ReplaceIllegalFileNameChars( &filename );
replace( filename.begin(), filename.end(), ' ', '_' );
wxFileName fn( m_filename );
wxFileName fn( m_schematic->Prj().GetProjectPath() );
fn.SetName( filename );
fn.SetExt( FILEEXT::KiCadSchematicFileExtension );