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 }