Convert filename to URL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8ad944dcbc
commit
dba06cd016
@ -202,7 +202,8 @@ bool hvApp::OnInit()
|
||||
|
||||
for( i=0; i < bookCount; i++ )
|
||||
{
|
||||
m_helpController->AddBook(book[i]);
|
||||
wxFileName fileName(book[i]);
|
||||
m_helpController->AddBook(fileName);
|
||||
}
|
||||
|
||||
#ifdef __WXMOTIF__
|
||||
@ -260,7 +261,8 @@ bool hvApp::OpenBook(wxHtmlHelpController* controller)
|
||||
if (ext == _T(".zip") || ext == _T(".htb") || ext == _T(".hhp"))
|
||||
{
|
||||
wxBusyCursor bcur;
|
||||
controller->AddBook(s);
|
||||
wxFileName fileName(s);
|
||||
controller->AddBook(fileName);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user