]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_meta.cpp
Moved the cleanup code to an EVT_WINDOW_DESTROY handler.
[wxWidgets.git] / src / html / m_meta.cpp
index 2c707c6c824e0415607462f974ce2ba393c1d02b..9ad9eb7c4bb36a43e6b9c47200df2da5fbba35d8 100644 (file)
@@ -46,7 +46,7 @@ TAG_HANDLER_BEGIN(META, "META")
             if (content.Left(19) == _T("text/html; charset="))
             {
                 wxFontEncoding enc =
-                    wxTheFontMapper->CharsetToEncoding(content.Mid(19));
+                    wxFontMapper::Get()->CharsetToEncoding(content.Mid(19));
                 if (enc == wxFONTENCODING_SYSTEM) return FALSE;
                 if (enc == m_WParser->GetInputEncoding()) return FALSE;