Eeschema: fix regression when sheet files are not in project path.

Fixes lp:1683921

https://bugs.launchpad.net/kicad/+bug/1683921
This commit is contained in:
Wayne Stambaugh 2017-05-10 16:05:06 -04:00
parent 5ad1a13096
commit 747583606b
1 changed files with 1 additions and 1 deletions

View File

@ -624,7 +624,7 @@ void SCH_LEGACY_PLUGIN::loadHierarchy( SCH_SHEET* aSheet )
wxFileName fileName = aSheet->GetFileName();
if( !fileName.IsAbsolute() )
fileName.SetPath( m_path );
fileName.MakeAbsolute( m_path );
m_rootSheet->SearchHierarchy( fileName.GetFullPath(), &screen );