Should use LoadFile for file, not LoadPage

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2005-12-18 12:24:25 +00:00
parent 3d941982de
commit 9dbadebe92

View File

@ -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
}