X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/67339f7d9ddfa94e314b71d62b2fed728df334e5..744b73167b959b4084c4a9a746cd2e92e3d27beb:/src/generic/htmllbox.cpp diff --git a/src/generic/htmllbox.cpp b/src/generic/htmllbox.cpp index c4256b2dea..c7c03d6237 100644 --- a/src/generic/htmllbox.cpp +++ b/src/generic/htmllbox.cpp @@ -225,7 +225,6 @@ void wxHtmlListBox::Init() m_htmlParser = NULL; m_htmlRendStyle = new wxHtmlListBoxStyle(*this); m_cache = new wxHtmlListBoxCache; - m_fontEncoding = wxFONTENCODING_ISO8859_1; } bool wxHtmlListBox::Create(wxWindow *parent, @@ -295,7 +294,8 @@ void wxHtmlListBox::CacheItem(size_t n) const m_htmlParser->SetDC(new wxClientDC(self)); m_htmlParser->SetFS(&self->m_filesystem); #if !wxUSE_UNICODE - m_htmlParser->SetInputEncoding(m_fontEncoding); + if (GetFont().Ok()) + m_htmlParser->SetInputEncoding(GetFont().GetEncoding()); #endif // use system's default GUI font by default: m_htmlParser->SetStandardFonts(); @@ -570,7 +570,9 @@ bool wxSimpleHtmlListBox::Create(wxWindow *parent, wxWindowID id, if (!wxHtmlListBox::Create(parent, id, pos, size, style, name)) return false; +#if wxUSE_VALIDATORS SetValidator(validator); +#endif for (int i=0; i