X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e8c82331dc783da87092132f4ce547e7ae0a216..80a24267cbc17d85e278e1f10cdfdaea12199639:/src/html/winpars.cpp diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index f358cf14c5..ca7afc5fd5 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -15,7 +15,7 @@ #include "wx/wxprec.h" #include "wx/defs.h" -#if wxUSE_HTML +#if wxUSE_HTML && wxUSE_STREAMS #ifdef __BORDLANDC__ #pragma hdrstop @@ -103,6 +103,13 @@ void wxHtmlWinParser::AddModule(wxHtmlTagsModule *module) +void wxHtmlWinParser::RemoveModule(wxHtmlTagsModule *module) +{ + m_Modules.DeleteObject(module); +} + + + void wxHtmlWinParser::SetFonts(wxString normal_face, wxString fixed_face, const int *sizes) { int i, j, k, l, m; @@ -355,7 +362,7 @@ void wxHtmlWinParser::SetInputEncoding(wxFontEncoding enc) wxCONVERT_SUBSTITUTE)) { // total failture :-( wxLogError(_("Failed to display HTML document in %s encoding"), - wxFontMapper::GetEncodingName(enc).mb_str()); + wxFontMapper::GetEncodingName(enc).c_str()); m_InputEnc = m_OutputEnc = wxFONTENCODING_DEFAULT; delete m_EncConv; m_EncConv = NULL; @@ -392,6 +399,7 @@ bool wxHtmlTagsModule::OnInit() void wxHtmlTagsModule::OnExit() { + wxHtmlWinParser::RemoveModule(this); } #endif