Commit 203247ae authored by jean-pierre charras's avatar jean-pierre charras

Add missing search paths in kicad help doc search paths ( only noticeable for...

Add missing search paths in kicad help doc search paths ( only noticeable for non English users ). Sometimes the translated doc was not found, and the English doc was displayed.
parent 77b3201b
......@@ -27,6 +27,7 @@ wxString FindFileInSearchPaths( const SEARCH_STACK& aStack,
if( fn.DirExists() )
{
wxLogMessage(fn.GetFullPath()+aFilename);
paths.Add( fn.GetPath() );
}
}
......@@ -116,6 +117,12 @@ wxString SearchHelpFileFullPath( const SEARCH_STACK& aSStack, const wxString& aB
fn = FindFileInSearchPaths( ss, aBaseName + wxT(".html"), &altsubdirs );
if( !fn )
fn = FindFileInSearchPaths( ss, aBaseName + wxT(".pdf"), &altsubdirs );
if( !fn )
fn = FindFileInSearchPaths( ss, aBaseName + wxT(".html"), &subdirs );
if( !fn )
fn = FindFileInSearchPaths( ss, aBaseName + wxT(".pdf"), &subdirs );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment