Import child sheets relative to project, not parent.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17785
This commit is contained in:
parent
08f181115b
commit
8e855156c8
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue