Fix logic error in Save As recursion guard.
Fixes https://gitlab.com/kicad/code/kicad/issues/9916
This commit is contained in:
parent
f08d663240
commit
329f00acdc
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue