Browse Source

Use wxFileName to resolve . and .. in documentation paths.

Fixes https://gitlab.com/kicad/code/kicad/issues/14564
newinvert
Jeff Young 3 years ago
parent
commit
08c773a0bf
  1. 3
      common/eda_doc.cpp

3
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" ) )

Loading…
Cancel
Save