From dba06cd01663d7b8569a263a166f2d86a61ef356 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 9 Dec 2002 15:52:29 +0000 Subject: [PATCH] Convert filename to URL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/helpview/src/helpview.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/helpview/src/helpview.cpp b/utils/helpview/src/helpview.cpp index e2515b785c..6f04ff68fb 100644 --- a/utils/helpview/src/helpview.cpp +++ b/utils/helpview/src/helpview.cpp @@ -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; } }