Ensuring consistent internal kicad file separator character on MSWin

This commit is contained in:
Cirilo Bernardo 2016-01-11 16:24:51 +11:00
parent c81a0d0f2f
commit e0b50b4002
1 changed files with 8 additions and 0 deletions

View File

@ -463,6 +463,14 @@ wxString S3D_FILENAME_RESOLVER::ShortenPath( const wxString& aFullPathName )
++sL; ++sL;
} }
#ifdef _WIN32
// it is strange to convert an MSWin full path to use the
// UNIX separator but this is done for consistency and can
// be helpful even when transferring project files from
// MSWin to *NIX.
fname.Replace( wxT( "\\" ), wxT( "/" ) );
#endif
return fname; return fname;
} }