]> git.saurik.com Git - wxWidgets.git/commitdiff
Should use LoadFile for file, not LoadPage
authorJulian Smart <julian@anthemion.co.uk>
Sun, 18 Dec 2005 12:24:25 +0000 (12:24 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 18 Dec 2005 12:24:25 +0000 (12:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/html/test/test.cpp

index 329bc799adcd4b28f8f9755781dece7792708fce..71a83a5951ed1883c336dd090eb9668146b4ebed 100644 (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
 }