mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Ensuring consistent internal kicad file separator character on MSWin
This commit is contained in:
parent
c81a0d0f2f
commit
e0b50b4002
@ -463,6 +463,14 @@ wxString S3D_FILENAME_RESOLVER::ShortenPath( const wxString& aFullPathName )
|
||||
++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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user