From 47f37efdec9256969361e17a7d4c4c5e6c6f967e Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 10 Oct 2017 08:37:50 +0200 Subject: [PATCH] Fix a compil issue on Linux --- eeschema/netlist_exporters/netlist_exporter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eeschema/netlist_exporters/netlist_exporter.cpp b/eeschema/netlist_exporters/netlist_exporter.cpp index 3f438fe0bc..9f8ca9a6fd 100644 --- a/eeschema/netlist_exporters/netlist_exporter.cpp +++ b/eeschema/netlist_exporters/netlist_exporter.cpp @@ -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