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:
parent
77b3201bbf
commit
203247aefe
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue