X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3403ccd5aeefbd74bc693262073431e22c654dc6..7539ba5615b812e8ba7634513f6e067142f2881e:/src/html/winpars.cpp diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index 1c86a5b76d..0f7ee8027c 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -38,6 +38,7 @@ // wxHtmlWinParser //----------------------------------------------------------------------------- +IMPLEMENT_ABSTRACT_CLASS(wxHtmlWinParser, wxHtmlParser) wxList wxHtmlWinParser::m_Modules; @@ -188,10 +189,11 @@ void wxHtmlWinParser::InitParser(const wxString& source) #endif m_Container->InsertCell(new wxHtmlColourCell(m_ActualColor)); + wxColour windowColour = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW) ; m_Container->InsertCell( new wxHtmlColourCell(GetWindow() ? GetWindow()->GetBackgroundColour() : - wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW), + windowColour, wxHTML_CLR_BACKGROUND)); m_Container->InsertCell(new wxHtmlFontCell(CreateCurrentFont())); } @@ -466,9 +468,15 @@ void wxHtmlWinParser::SetInputEncoding(wxFontEncoding enc) else if (wxFontMapper::Get()->GetAltForEncoding(enc, &altnorm, m_FontFaceNormal, FALSE)) m_OutputEnc = altnorm; - // okay, let convert to ISO_8859-1, available always else + { +#ifndef __WXMAC__ + // okay, let convert to ISO_8859-1, available always m_OutputEnc = wxFONTENCODING_DEFAULT; +#else + m_OutputEnc = wxLocale::GetSystemEncoding() ; +#endif + } m_InputEnc = enc; if (m_OutputEnc == wxFONTENCODING_DEFAULT)