From 4d02c43189dd1b4783ad68f8eef9530d440ed2a1 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 27 Mar 2014 19:28:10 +0100 Subject: [PATCH] Fix (temporary fix) a bug I created in dialog_freeroute_exchange.cpp in bzr rev 4769 --- pcbnew/dialogs/dialog_freeroute_exchange.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/dialogs/dialog_freeroute_exchange.cpp b/pcbnew/dialogs/dialog_freeroute_exchange.cpp index fa765b7dcd..e3835adfcf 100644 --- a/pcbnew/dialogs/dialog_freeroute_exchange.cpp +++ b/pcbnew/dialogs/dialog_freeroute_exchange.cpp @@ -139,6 +139,7 @@ void DIALOG_FREEROUTE::OnImportButtonClick( wxCommandEvent& event ) void DIALOG_FREEROUTE::OnLaunchButtonClick( wxCommandEvent& event ) { wxString javaCommand; + wxString command; if( m_freeRouterIsLocal ) { @@ -198,13 +199,12 @@ void DIALOG_FREEROUTE::OnLaunchButtonClick( wxCommandEvent& event ) key.QueryValue( m_freeRouterIsLocal ? wxT( "JavaHome" ) : wxT( "Home" ), value ); wxString javaCommandPath = value + wxFileName::GetPathSeparator(); + command = javaCommandPath; #else #warning Kicad needs wxWidgets >= 2.9.4. version 2.8 is only supported for testing purposes #endif // wxCHECK_VERSION( 2, 9, 0 ) #endif // __WINDOWS__ - wxString command = javaCommandPath; - if( m_freeRouterIsLocal ) command << wxT("bin\\") << javaCommand; else