From 329f00acdc5eed5154737f8f6d557f8667fc294d Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 9 Dec 2021 16:49:57 +0000 Subject: [PATCH] Fix logic error in Save As recursion guard. Fixes https://gitlab.com/kicad/code/kicad/issues/9916 --- kicad/tools/kicad_manager_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kicad/tools/kicad_manager_control.cpp b/kicad/tools/kicad_manager_control.cpp index f3caa9a2dd..eb028fdab2 100644 --- a/kicad/tools/kicad_manager_control.cpp +++ b/kicad/tools/kicad_manager_control.cpp @@ -358,7 +358,7 @@ public: virtual wxDirTraverseResult OnFile( const wxString& aSrcFilePath ) override { // Recursion guard for a Save As to a location inside the source project. - if( aSrcFilePath.StartsWith( m_newProjectDirPath ) ) + if( aSrcFilePath.StartsWith( m_newProjectDirPath + wxFileName::GetPathSeparator() ) ) return wxDIR_CONTINUE; wxFileName destFile( aSrcFilePath );