Import child sheets relative to project, not parent.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17785
This commit is contained in:
Jeff Young 2024-06-04 17:47:26 +01:00
parent 08f181115b
commit 8e855156c8
1 changed files with 1 additions and 1 deletions

View File

@ -969,7 +969,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 );