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:
parent
78cbb8e994
commit
dc24d13fef
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue