made GetAssociatedDocument() compatible with last changes in kicad path handling.

This commit is contained in:
charras
2009-04-07 15:54:40 +00:00
parent 6e54ec713d
commit e719b42e1f
10 changed files with 60 additions and 48 deletions
+1 -10
View File
@@ -259,15 +259,6 @@ void WinEDA_BasicFrame::GetKicadHelp( wxCommandEvent& event )
}
#elif defined ONLINE_HELP_FILES_FORMAT_IS_PDF
// wxString fullfilename = FindKicadHelpPath() + wxGetApp().m_HelpFileName;
// if ( wxFileExists(fullfilename) )
// GetAssociatedDocument( this, wxEmptyString, fullfilename );
// else // Try to find file in English format:
// {
// fullfilename = FindKicadHelpPath() + wxT("../en/") + wxGetApp().m_HelpFileName;;
// GetAssociatedDocument( this, wxEmptyString, fullfilename );
// }
wxString helpFile = wxGetApp().GetHelpFile();
if( !helpFile )
{
@@ -276,7 +267,7 @@ void WinEDA_BasicFrame::GetKicadHelp( wxCommandEvent& event )
DisplayError( this, msg );
}
else
GetAssociatedDocument( this, wxEmptyString, helpFile );
GetAssociatedDocument( this, helpFile );
#else
# error Help files format not defined