From f8ff1040037f81706cfb88e98f39dd8344c74821 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 5 Feb 2022 11:16:56 +0100 Subject: [PATCH] Fix a compil issue. --- pcbnew/files.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp index 6fa160f132..10c1bb65be 100644 --- a/pcbnew/files.cpp +++ b/pcbnew/files.cpp @@ -856,9 +856,10 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in wxT( "There is no project variable?" ) ); wxString result( newLibPath ); - rel_path = result.Replace( env_path, wxT( "$(" ) + project_env + wxT( ")" ) ) - ? result - : wxEmptyString; + rel_path = result.Replace( env_path, + wxT( "$(" ) + project_env + wxT( ")" ) ) + ? result + : wxString( wxEmptyString ); FP_LIB_TABLE_ROW* row = new FP_LIB_TABLE_ROW( libNickName, rel_path, wxT( "KiCad" ), wxEmptyString );