Fix a compil issue on Linux

This commit is contained in:
jean-pierre charras 2017-10-10 08:37:50 +02:00
parent e626136e29
commit 47f37efdec
1 changed files with 1 additions and 2 deletions

View File

@ -59,6 +59,7 @@ wxString NETLIST_EXPORTER::MakeCommandLine( const wxString& aFormatString,
wxString ret = aFormatString;
wxFileName in = aNetlistFile;
wxFileName out = aFinalFile;
wxString str_out = out.GetFullPath();
ret.Replace( "%P", aProjectPath, true );
ret.Replace( "%B", out.GetName(), true );
@ -70,8 +71,6 @@ wxString NETLIST_EXPORTER::MakeCommandLine( const wxString& aFormatString,
// so replace if by '/' if possible (I mean if the filename does not start by "\\"
// that is a filename on a Windows server)
wxString str_out = out.GetFullPath();
if( !str_out.StartsWith( "\\\\" ) )
str_out.Replace( "\\", "/" );
#endif