X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b4f4d3dd610a29a7be3c7a5f165520438d0328bb..c17b2e31516424a77fd54b8fc192eac133269ce4:/src/html/m_layout.cpp diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index 1bea340201..2451f2fb53 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -289,9 +289,7 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE") wxHtmlWindowInterface *winIface = m_WParser->GetWindowInterface(); if (winIface) { - wxString title = m_WParser->GetSource()->Mid( - tag.GetBeginPos(), - tag.GetEndPos1()-tag.GetBeginPos()); + wxString title(tag.GetBeginIter(), tag.GetEndIter1()); #if !wxUSE_UNICODE && wxUSE_WCHAR_T const wxFontEncoding enc = m_WParser->GetInputEncoding(); if ( enc != wxFONTENCODING_DEFAULT )