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

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
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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 );
    }