From: Julian Smart Date: Sun, 18 Dec 2005 12:24:25 +0000 (+0000) Subject: Should use LoadFile for file, not LoadPage X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9dbadebe924436c3c658fb5a51c3a22fd9ca8c91 Should use LoadFile for file, not LoadPage git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/html/test/test.cpp b/samples/html/test/test.cpp index 329bc799ad..71a83a5951 100644 --- a/samples/html/test/test.cpp +++ b/samples/html/test/test.cpp @@ -237,7 +237,7 @@ void MyFrame::OnPageOpen(wxCommandEvent& WXUNUSED(event)) wxEmptyString, wxEmptyString, wxT("HTML files|*.htm")); if (!p.empty()) - m_Html->LoadPage(p); + m_Html->LoadFile(wxFileName(p)); #endif // wxUSE_FILEDLG }