X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eba330067e87ccec9c8af7bd8b1023044e6d39e3..008a56c968ed7e0694e32e93c2dbf95dde2ba5c8:/src/html/htmprint.cpp diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 117e2261c4..a2dfa82097 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -269,9 +269,6 @@ void wxHtmlPrintout::SetHtmlText(const wxString& html, const wxString &basepath, m_BasePathIsDir = isdir; } -// defined in htmlfilt.cpp -void wxPrivate_ReadString(wxString& str, wxInputStream* s); - void wxHtmlPrintout::SetHtmlFile(const wxString& htmlfile) { wxFileSystem fs; @@ -283,13 +280,11 @@ void wxHtmlPrintout::SetHtmlFile(const wxString& htmlfile) return; } - wxInputStream *st = ff->GetStream(); - wxString doc; - wxPrivate_ReadString(doc, st); - - delete ff; - + wxHtmlFilterHTML filter; + wxString doc = filter.ReadFile(*ff); + SetHtmlText(doc, htmlfile, FALSE); + delete ff; }