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:
parent
3d941982de
commit
9dbadebe92
@ -237,7 +237,7 @@ void MyFrame::OnPageOpen(wxCommandEvent& WXUNUSED(event))
|
|||||||
wxEmptyString, wxEmptyString, wxT("HTML files|*.htm"));
|
wxEmptyString, wxEmptyString, wxT("HTML files|*.htm"));
|
||||||
|
|
||||||
if (!p.empty())
|
if (!p.empty())
|
||||||
m_Html->LoadPage(p);
|
m_Html->LoadFile(wxFileName(p));
|
||||||
#endif // wxUSE_FILEDLG
|
#endif // wxUSE_FILEDLG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user