X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7127d12912341510250bfcf4921ab744faf775e0..1ab36908f93242d578b42d314e93dec6a2e2819a:/src/html/m_layout.cpp diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index 42c72aded6..ee1e782205 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -4,7 +4,7 @@ // Author: Vaclav Slavik // RCS-ID: $Id$ // Copyright: (c) 1999 Vaclav Slavik -// Licence: wxWindows Licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation @@ -295,9 +295,11 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE") wxHtmlWindow *wfr = (wxHtmlWindow*)(m_WParser->GetWindow()); if (wfr) { - const wxString& src = *m_WParser->GetSource(); - wfr->OnSetTitle(src.Mid(tag.GetBeginPos(), - tag.GetEndPos1()-tag.GetBeginPos())); + wxString title = m_WParser->GetSource()->Mid( + tag.GetBeginPos(), + tag.GetEndPos1()-tag.GetBeginPos()); + title = m_WParser->GetEntitiesParser()->Parse(title); + wfr->OnSetTitle(title); } } return TRUE;