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.

This commit is contained in:
jean-pierre charras 2014-10-15 15:14:14 +02:00
parent 77b3201bbf
commit 203247aefe
1 changed files with 7 additions and 0 deletions

View File

@ -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 );
}