diff --git a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp index 143e2123e2..b033a58f8b 100644 --- a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp +++ b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp @@ -266,7 +266,7 @@ void CADSTAR_SCH_ARCHIVE_LOADER::loadSheets() ReplaceIllegalFileNameChars( &filename ); filename += wxT( "." ) + KiCadSchematicFileExtension; - wxFileName fn( filename ); + wxFileName fn( m_schematic->Prj().GetProjectPath() + filename ); m_rootSheet->GetScreen()->SetFileName( fn.GetFullPath() ); m_sheetMap.insert( { rootSheetID, m_rootSheet } ); @@ -2035,7 +2035,7 @@ void CADSTAR_SCH_ARCHIVE_LOADER::loadSheetAndChildSheets( filenameField.SetText( filename ); - wxFileName fn( filename ); + wxFileName fn( m_schematic->Prj().GetProjectPath() + filename ); sheet->GetScreen()->SetFileName( fn.GetFullPath() ); aParentSheet.Last()->GetScreen()->Append( sheet ); instance.push_back( sheet );