diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 1f5ed0f2f2..b1c0d9e02f 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -345,6 +345,12 @@ bool wxHtmlWindow::LoadPage(const wxString& location) } +bool wxHtmlWindow::LoadFile(const wxFileName& filename) +{ + wxString url = wxFileSystem::FileNameToURL(filename); + return LoadPage(url); +} + bool wxHtmlWindow::ScrollToAnchor(const wxString& anchor) {