diff --git a/common/eda_doc.cpp b/common/eda_doc.cpp index 0b0c19c52f..1300f7b793 100644 --- a/common/eda_doc.cpp +++ b/common/eda_doc.cpp @@ -144,6 +144,9 @@ bool GetAssociatedDocument( wxWindow* aParent, const wxString& aDocName, PROJECT wxFileName currentFileName( fullfilename ); + // Use wxWidgets to resolve any "." and ".." in the path + fullfilename = currentFileName.GetAbsolutePath(); + wxString file_ext = currentFileName.GetExt(); if( file_ext.Lower() == wxT( "pdf" ) )