Eeschema: fix broken complex hierarchy loading on Windows
The full filename comparison to detect the reuse of a file was broken on Windows because it mixed a native filename notation (containing the drive id), and a unix notation (no drive in filename, different separator).
This commit is contained in:
parent
36f1d023f0
commit
8bb3fae5ae
|
@ -670,7 +670,7 @@ void SCH_LEGACY_PLUGIN::loadHierarchy( SCH_SHEET* aSheet )
|
|||
wxLogTrace( traceSchLegacyPlugin, "Current path \"%s\"", m_currentPath.top() );
|
||||
wxLogTrace( traceSchLegacyPlugin, "Loading \"%s\"", fileName.GetFullPath() );
|
||||
|
||||
m_rootSheet->SearchHierarchy( fileName.GetFullPath( wxPATH_UNIX ), &screen );
|
||||
m_rootSheet->SearchHierarchy( fileName.GetFullPath(), &screen );
|
||||
|
||||
if( screen )
|
||||
{
|
||||
|
|
|
@ -418,7 +418,7 @@ public:
|
|||
/**
|
||||
* Search the existing hierarchy for an instance of screen loaded from \a aFileName.
|
||||
*
|
||||
* @param aFilename = the filename to find (MUST be absolute, and in wxPATH_UNIX encoding)
|
||||
* @param aFilename = the filename to find (MUST be absolute, and in wxPATH_NATIVE encoding)
|
||||
* @param aScreen = a location to return a pointer to the screen (if found)
|
||||
* @return bool if found, and a pointer to the screen
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue