Fix logic error in Save As recursion guard.

Fixes https://gitlab.com/kicad/code/kicad/issues/9916
This commit is contained in:
Jeff Young 2021-12-09 16:49:57 +00:00
parent f08d663240
commit 329f00acdc
1 changed files with 1 additions and 1 deletions

View File

@ -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 );