mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 22:03:47 +00:00
Another attempt to fix Windows file URLs for PDF links.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14250
This commit is contained in:
parent
3162747d25
commit
6cc5d89838
@ -1467,11 +1467,9 @@ wxString NormalizeFileUri( const wxString& aFileUri )
|
||||
|
||||
wxCHECK( aFileUri.StartsWith( wxS( "file://" ), &uriPathAndFileName ), aFileUri );
|
||||
|
||||
wxString tmp;
|
||||
wxString tmp = uriPathAndFileName;
|
||||
wxString retv = wxS( "file://" );
|
||||
wxFileName fn = uriPathAndFileName;
|
||||
|
||||
tmp = fn.GetPathWithSep( wxPATH_UNIX );
|
||||
tmp.Replace( wxS( "\\" ), wxS( "/" ) );
|
||||
tmp.Replace( wxS( ":" ), wxS( "" ) );
|
||||
|
||||
@ -1479,9 +1477,6 @@ wxString NormalizeFileUri( const wxString& aFileUri )
|
||||
tmp = wxS( "/" ) + tmp;
|
||||
|
||||
retv += tmp;
|
||||
retv += fn.GetFullName();
|
||||
|
||||
wxLogDebug( wxS( "Normalize file: '%s'." ), retv );
|
||||
|
||||
return retv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user